This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
/
kong-ingress-data-plane-cassandra.yaml
83 lines (82 loc) · 1.96 KB
/
kong-ingress-data-plane-cassandra.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: kong
name: kong-ingress-data-plane
labels:
app: kong-ingress-data-plane
spec:
selector:
matchLabels:
app: kong-ingress-data-plane
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
annotations:
k8s.konghq.com/sidecar-inject: "false"
labels:
app: kong-ingress-data-plane
spec:
containers:
- name: kong-ingress-data-plane
image: kong
imagePullPolicy: IfNotPresent
env:
- name: KONG_DATABASE
value: cassandra
- name: KONG_CASSANDRA_CONTACT_POINTS
value: cassandra.default.svc
- name: KONG_CASSANDRA_KEYSPACE
value: kong
- name: KONG_LOG_LEVEL
value: notice
- name: KONG_ADMIN_ACCESS_LOG
value: /dev/stdout
- name: KONG_PROXY_ERROR_LOG
value: /dev/stderr
- name: KONG_ADMIN_ERROR_LOG
value: /dev/stderr
- name: KONG_ADMIN_LISTEN
value: 'off'
- name: KONG_PROXY_LISTEN
value: 0.0.0.0:8000,0.0.0.0:8443 ssl
- name: KONG_NGINX_WORKER_PROCESSES
value: "1"
ports:
- name: data-http
containerPort: 8000
- name: data-https
containerPort: 8443
readinessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 15
periodSeconds: 20
---
apiVersion: v1
kind: Service
metadata:
namespace: kong
name: kong-ingress-data-plane
spec:
type: NodePort
ports:
- name: kong-proxy-http
port: 8000
targetPort: 8000
protocol: TCP
- name: kong-proxy-https
port: 8443
targetPort: 8443
protocol: TCP
selector:
app: kong-ingress-data-plane