mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 10:13:58 +00:00
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: prole-db-kong
|
|
labels:
|
|
app: prole-db-kong
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: prole-db-kong
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: prole-db-kong
|
|
spec:
|
|
containers:
|
|
- name: kong
|
|
image: kong:3.9
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- containerPort: 8000
|
|
name: proxy
|
|
- containerPort: 8001
|
|
name: admin
|
|
env:
|
|
- name: KONG_DATABASE
|
|
value: "off"
|
|
- name: KONG_PROXY_LISTEN
|
|
value: "0.0.0.0:8000"
|
|
- name: KONG_ADMIN_LISTEN
|
|
value: "0.0.0.0:8001"
|
|
- name: KONG_DECLARATIVE_CONFIG
|
|
value: "/etc/kong/declarative/kong.yml"
|
|
volumeMounts:
|
|
- name: kong-config
|
|
mountPath: /etc/kong/declarative
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /status
|
|
port: admin
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /status
|
|
port: admin
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
volumes:
|
|
- name: kong-config
|
|
configMap:
|
|
name: prole-db-kong-config
|