bigchaindb/k8s/apicast/apicast-dep.yaml
Shahbaz Nazir 88d4659dde Adding k8s deployment for new 3scale apicast gateway
Signed-off-by: Shahbaz Nazir <shahbaz@bigchaindb.com>
2018-02-19 11:36:23 +01:00

37 lines
899 B
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: openresty-instance-1-dep
spec:
replicas: 1
template:
metadata:
labels:
app: openresty-instance-1-dep
spec:
terminationGracePeriodSeconds: 10
containers:
- name: nginx-openresty
image: bigchaindb/nginx_3scale:unstable
imagePullPolicy: IfNotPresent
env:
- name: DNS_SERVER
valueFrom:
configMapKeyRef:
name: vars
key: cluster-dns-server-ip
- name: THREESCALE_PORTAL_ENDPOINT
valueFrom:
secretKeyRef:
name: 3scale-credentials
key: conf-url
ports:
- containerPort: 8080
protocol: TCP
name: openresty-port
resources:
limits:
cpu: 200m
memory: 768Mi
restartPolicy: Always