Created
August 19, 2018 08:04
-
-
Save congnt24/9b6371fabcead8cd923df99d0ee4695f to your computer and use it in GitHub Desktop.
Install Kong with type ClusterIP
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: | |
| ports: | |
| - name: kong-proxy | |
| port: 8000 | |
| targetPort: 8000 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-proxy-ssl | |
| spec: | |
| ports: | |
| - name: kong-proxy-ssl | |
| port: 8443 | |
| targetPort: 8443 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-admin | |
| spec: | |
| ports: | |
| - name: kong-admin | |
| port: 8001 | |
| targetPort: 8001 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: kong-admin-ssl | |
| spec: | |
| ports: | |
| - name: kong-admin-ssl | |
| port: 8444 | |
| targetPort: 8444 | |
| protocol: TCP | |
| selector: | |
| app: kong | |
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: kong-rc | |
| spec: | |
| replicas: 3 | |
| template: | |
| metadata: | |
| labels: | |
| name: kong-rc | |
| 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_PG_PASSWORD | |
| value: kong | |
| - name: KONG_PG_HOST | |
| value: postgres | |
| - 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment