43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
## Example of a simple deployment
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: goma-gateway
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: goma-gateway
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: goma-gateway
|
|
spec:
|
|
containers:
|
|
- name: goma-gateway
|
|
image: jkaninda/goma-gateway
|
|
command: ["/usr/local/bin/goma","server"]
|
|
resources:
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "200m"
|
|
ports:
|
|
- containerPort: 8080
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 8080
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 15
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /etc/goma/
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: goma-config |