-
Notifications
You must be signed in to change notification settings - Fork 1
/
05-kong_migration_cassandra.yaml
51 lines (51 loc) · 1.41 KB
/
05-kong_migration_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
apiVersion: batch/v1
kind: Job
metadata:
name: kong-migration-cassandra
namespace: kong-appgw
spec:
template:
metadata:
name: kong-migration-cassandra
spec:
containers:
- name: kong-migration-cassandra
image: apirath/kong-appgw:v0.14.1-alpine
env:
- name: KONG_NGINX_DAEMON
value: 'off'
- name: KONG_DATABASE
valueFrom:
configMapKeyRef:
name: kong-configmap
key: kong_database
- name: KONG_CASSANDRA_CONTACT_POINTS
valueFrom:
configMapKeyRef:
name: kong-configmap
key: cassandra_contact_point
- name: KONG_CASSANDRA_KEYSPACE
valueFrom:
configMapKeyRef:
name: kong-configmap
key: cassandra_keyspace
- name: KONG_CASSANDRA_USER
valueFrom:
configMapKeyRef:
name: kong-configmap
key: cassandra_user
- name: KONG_CASSANDRA_PASSWORD
valueFrom:
secretKeyRef:
name: kong-secrets
key: cassandra_pass
- name: KONG_CASSANDRA_REPL_FACTOR
valueFrom:
configMapKeyRef:
name: kong-configmap
key: kong_cassandra_replicas_factor
command:
- "/bin/sh"
- "-c"
- "kong migrations up"
restartPolicy: Never