Skip to content

Instantly share code, notes, and snippets.

@elipapa
Created November 30, 2017 14:10
Show Gist options
  • Save elipapa/98018697103780a0a29ab77b0475bc33 to your computer and use it in GitHub Desktop.
Save elipapa/98018697103780a0a29ab77b0475bc33 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: apiproxy-eu
spec:
replicas: 1
template:
metadata:
labels:
name: apiproxy-eu
app: apiproxy
region: eu
spec:
volumes:
- name: nginxconf-volume
configMap:
name: nginxconf
- name: backends-volume
configMap:
name: backends
items:
- key: proxy
path: proxy.conf
- key: eu
path: backend.conf
containers:
- image: nginx:1.13-alpine
name: nginx
livenessProbe:
httpGet:
path: /_heartbeat
port: 80
initialDelaySeconds: 30
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /_ah/health
port: 80
httpHeaders:
- name: Host
value: api.opentargets.io
initialDelaySeconds: 30
timeoutSeconds: 10
volumeMounts:
- mountPath: /etc/nginx/nginx.conf
name: nginxconf-volume
subPath: nginx.conf
- mountPath: /etc/nginx/conf.d/
name: backends-volume
ports:
- name: http
containerPort: 80
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment