Skip to content

Instantly share code, notes, and snippets.

@bitmage
Created March 26, 2017 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitmage/8dde368dfb65109e7359a457c4300677 to your computer and use it in GitHub Desktop.
Save bitmage/8dde368dfb65109e7359a457c4300677 to your computer and use it in GitHub Desktop.
kubernetes example deployment
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: proxy
spec:
replicas: 1
template:
metadata:
name: proxy
labels:
app: proxy
spec:
containers:
- name: nginx-ssl-proxy
image: ployst/nginx-ssl-proxy:0.0.7
env:
- name: SERVER_NAME
value: foo.com
- name: ENABLE_SSL
value: 'true'
- name: TARGET_SERVICE
value: storage.googleapis.com
- name: CERT_SERVICE_HOST_ENV_NAME
value: SOME_SERVICE_HOST
- name: CERT_SERVICE_PORT_ENV_NAME
value: SOME_SERVICE_PORT
volumeMounts:
- name: certs
mountPath: /etc/secrets
readOnly: true
volumes:
- name: certs
secret:
secretName: cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment