Skip to content

Instantly share code, notes, and snippets.

@guilhermesteves
Last active October 31, 2018 18:42
Show Gist options
  • Save guilhermesteves/780c46acc62335a606eee9ea11a6d889 to your computer and use it in GitHub Desktop.
Save guilhermesteves/780c46acc62335a606eee9ea11a6d889 to your computer and use it in GitHub Desktop.
YAML do Deployment de um webapp no minikube
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: webapp
spec:
template:
metadata:
labels:
app: webapp
spec:
containers:
- image: xcoulon/go-url-shortener:0.1.0
name: go-url-shortener
env:
- name: POSTGRES_HOST
value: postgres
- name: POSTGRES_PORT
value: 5432
- name: POSTGRES_DATABASE
value: url_shortener_db
- name: POSTGRES_USER
value: user
- name: POSTGRES_PASSWORD
value: mysecretpassword
ports:
- containerPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment