Created
July 27, 2018 01:31
-
-
Save ll911/c150f0fb20728255c3546330dcd2c531 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: kong-migration | |
| spec: | |
| template: | |
| metadata: | |
| name: kong-migration | |
| spec: | |
| containers: | |
| - name: kong-migration | |
| image: 172.50.0.2:5000/dbc-konga-tools/kong-k8s | |
| env: | |
| - name: KONG_NGINX_DAEMON | |
| value: 'off' | |
| - name: KONG_DATABASE | |
| value: cassandra | |
| - name: KONG_CASSANDRA_CONTACT_POINTS | |
| value: cassandra | |
| - name: KONG_CASSANDRA_KEYSPACE | |
| value: kong | |
| - name: KONG_CASSANDRA_REPL_FACTOR | |
| value: '3' | |
| - name: KONG_PLUGINS | |
| value: 'bundled,gwa-ip-anonymity,oidc,kong-oidc-auth' | |
| - name: KONG_TRUSTED_IPS | |
| value: 172.51.0.0/16,142.34.143.128/26 | |
| - name: KONG_REAL_IP_RECURSIVE | |
| value: 'on' | |
| - name: KONG_NGINX_LARGE_CLIENT_HEADER_BUFFERS | |
| value: '4 64K' | |
| command: [ "/bin/sh", "-c", "kong migrations up" ] | |
| restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment