Skip to content

Instantly share code, notes, and snippets.

Avatar
✍️
docsdocsdocs

Chris Chinchilla ChrisChinchilla

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