Skip to content

Instantly share code, notes, and snippets.

@weikangchia
Last active February 13, 2022 11:30
Show Gist options
  • Save weikangchia/5e925d9de75f6e2c7934523d9e719531 to your computer and use it in GitHub Desktop.
Save weikangchia/5e925d9de75f6e2c7934523d9e719531 to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: krakend-deployment
labels:
name: krakend-deployment
app: krakend
tier: app
spec:
replicas: 1
selector:
matchLabels:
name: krakend-pod
app: krakend
tier: app
template:
metadata:
name: krakend-pod
labels:
name: krakend-pod
app: krakend
tier: app
spec:
containers:
- name: krakend-container
image: devopsfaith/krakend:1.4.1-alpine
command: ["/usr/bin/krakend"]
args: ["run", "-d", "-c", "/etc/config/krakend/krakend.json", "-p", "8080"]
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
env:
- name: KRAKEND_PORT
value: "8080"
volumeMounts:
- name: config-volume
mountPath: /etc/config/krakend
volumes:
- name: config-volume
configMap:
name: krakend-cm
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment