Skip to content

Instantly share code, notes, and snippets.

@tuminoid
Created January 23, 2019 13:33
Show Gist options
  • Save tuminoid/56f939e5a06a16be72bbd155ecc75b2f to your computer and use it in GitHub Desktop.
Save tuminoid/56f939e5a06a16be72bbd155ecc75b2f to your computer and use it in GitHub Desktop.
pretty typical nginx container yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: static-web
labels:
app: core
group: frontend
type: scalable
spec:
replicas: 50
strategy: {}
selector:
matchLabels:
service: static-web
template:
metadata:
labels:
service: static-web
access-logger: "true"
spec:
containers:
- image: registry:5000/esm.static-web:latest
name: static-web
env:
- name: ESM_SYSLOG_HOST
value: logger
- name: ESM_SYSLOG_PORT
value: "514"
- name: ESM_SYSLOG_TAG
value: static-web
ports:
- containerPort: 8000
protocol: TCP
name: static-web
readinessProbe:
httpGet:
path: /healthz
port: static-web
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 2
livenessProbe:
httpGet:
path: /healthz
port: static-web
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 2
resources:
requests:
memory: "16Mi"
cpu: "10m"
limits:
memory: "32Mi"
volumeMounts:
- mountPath: /tokens
name: pv-vault-proxy
subPath: tokens/proxy
- mountPath: /keys
name: pv-keys-foo
volumes:
- name: pv-vault-proxy
persistentVolumeClaim:
claimName: pvc-vault-ro
- name: pv-keys-foo
emptyDir:
medium: "Memory"
restartPolicy: Always
dnsPolicy: ClusterFirst
automountServiceAccountToken: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment