Skip to content

Instantly share code, notes, and snippets.

@ChrisChinchilla
Created April 20, 2020 08:25
Show Gist options
  • Save ChrisChinchilla/9a2a5362a1585a3adb671a740d5d15e8 to your computer and use it in GitHub Desktop.
Save ChrisChinchilla/9a2a5362a1585a3adb671a740d5d15e8 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ecommerce
tier: backend
name: product-be
spec:
replicas: 2
selector:
matchLabels:
app: ecommerce
tier: backend
template:
metadata:
labels:
app: ecommerce
tier: backend
spec:
containers:
- env:
- name: DATABASE_HOST
value: postgres
- name: DATABASE_NAME
value: product
- name: DATABASE_PASSWORD
value: pr0dr0b0t
- name: DATABASE_USER
value: product_robot
- name: DATABASE_PORT
value: "5432"
image: chrischinchilla/humanitech-product-be
imagePullPolicy: "IfNotPresent"
name: product-be
ports:
- containerPort: 8080
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment