Last active
June 8, 2018 18:23
-
-
Save ll911/b17de6a76be515d19464b1faab934f64 to your computer and use it in GitHub Desktop.
kong-k8s-cassandra
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: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-proxy | |
| spec: | |
| type: LoadBalancer | |
| loadBalancerSourceRanges: | |
| - 0.0.0.0/0 | |
| ports: | |
| - name: kong-proxy | |
| port: 8000 | |
| targetPort: 8000 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-proxy-ssl | |
| spec: | |
| type: LoadBalancer | |
| loadBalancerSourceRanges: | |
| - 0.0.0.0/0 | |
| ports: | |
| - name: kong-proxy-ssl | |
| port: 8443 | |
| targetPort: 8443 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-admin | |
| spec: | |
| type: LoadBalancer | |
| loadBalancerSourceRanges: | |
| - 0.0.0.0/0 | |
| ports: | |
| - name: kong-admin | |
| port: 8001 | |
| targetPort: 8001 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-admin-ssl | |
| spec: | |
| type: LoadBalancer | |
| loadBalancerSourceRanges: | |
| - 0.0.0.0/0 | |
| ports: | |
| - name: kong-admin-ssl | |
| port: 8444 | |
| targetPort: 8444 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: kong-k8s | |
| spec: | |
| replicas: 3 | |
| template: | |
| metadata: | |
| labels: | |
| name: kong-k8s | |
| app: kong | |
| spec: | |
| containers: | |
| - name: kong | |
| image: kong | |
| env: | |
| - name: KONG_ADMIN_LISTEN | |
| value: "0.0.0.0:8001, 0.0.0.0:8444 ssl" | |
| - name: KONG_DATABASE | |
| value: cassandra | |
| - name: KONG_CASSANDRA_CONTACT_POINTS | |
| value: cassandra | |
| - name: KONG_CASSANDRA_KEYSPACE | |
| value: kong | |
| - name: KONG_CASSANDRA_REPL_FACTOR | |
| value: "2" | |
| - name: KONG_PROXY_ACCESS_LOG | |
| value: "/dev/stdout" | |
| - name: KONG_ADMIN_ACCESS_LOG | |
| value: "/dev/stdout" | |
| - name: KONG_PROXY_ERROR_LOG | |
| value: "/dev/stderr" | |
| - name: KONG_ADMIN_ERROR_LOG | |
| value: "/dev/stderr" | |
| ports: | |
| - name: admin | |
| containerPort: 8001 | |
| protocol: TCP | |
| - name: proxy | |
| containerPort: 8000 | |
| protocol: TCP | |
| - name: proxy-ssl | |
| containerPort: 8443 | |
| protocol: TCP | |
| - name: admin-ssl | |
| containerPort: 8444 | |
| protocol: TCP | |
| volumeMounts: | |
| - name: kong-run | |
| mountPath: /usr/local/kong | |
| volumes: | |
| - name: kong-run | |
| emptyDir: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment