Skip to content

Instantly share code, notes, and snippets.

View ChrisChinchilla's full-sized avatar
✍️
docsdocsdocs

Chris Chinchilla ChrisChinchilla

✍️
docsdocsdocs
View GitHub Profile
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres
spec:
template:
spec:
$setElementOrder/containers:
- name: postgres
containers:
spec:
containers:
- name: postgres
image: postgres:{{ .Values.postgresVersion }}
envFrom:
- configMapRef:
name: postgres-config
spec:
containers:
- name: postgres
image: postgres:latest
envFrom:
- configMapRef:
name: postgres-config
spec:
containers:
- name: postgres
image: postgres:latest
envFrom:
- configMapRef:
name: postgres-config
apiVersion: v1
kind: Secret
metadata:
name: postgres-secrets
type: Opaque
data:
POSTGRES_USER: cHJvZHVjdF9yb2JvdA==
POSTGRES_PASSWORD: cHIwZHIwYjB0
spec:
containers:
- name: product-be
image: chrischinchilla/humanitech-product-be
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: "32Mi"
env:
- name: DATABASE_HOST
spec:
containers:
- name: client
image: chrischinchilla/humanitech-product-fe
imagePullPolicy: "IfNotPresent"
ports:
- name: http
containerPort: 8080
env:
- name: PRODUCT_BE_SERVER_URL
POSTGRES_DB=product
POSTGRES_USER=product_robot
POSTGRES_PASSWORD=pr0dr0b0t
PGDATA=/var/lib/postgresql/data/pgdata
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-config
labels:
app: ecommerce
tier: postgres
data:
POSTGRES_DB: product
POSTGRES_USER: product_robot
spec:
containers:
- name: postgres
image: postgres:latest
envFrom:
- configMapRef:
name: postgres-config
ports:
- containerPort: 5432
name: postgredb