1 # Copyright 2020 Huawei Technologies Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
36 - name: check-db-ready
38 command: ['sh', '-c', 'until pg_isready -h postgres-db -p 5432;
39 do echo waiting for database; sleep 2; done;']
42 image: kong:1.5.1-alpine
46 - name: KONG_NGINX_WORKER_PROCESSES
48 - name: KONG_ADMIN_ACCESS_LOG
50 - name: KONG_ADMIN_ERROR_LOG
52 - name: KONG_ADMIN_ACCESS_LOG
54 - name: KONG_ADMIN_ERROR_LOG
56 - name: KONG_ADMIN_LISTEN
57 value: 127.0.0.1:8444 ssl
58 - name: KONG_PROXY_LISTEN
59 value: 0.0.0.0:8000, 0.0.0.0:8443 ssl http2
60 - name: KONG_ADMIN_LISTEN
62 - name: KONG_PG_DATABASE
68 - name: KONG_PG_PASSWORD
70 - name: KONG_PROXY_ACCESS_LOG
72 - name: KONG_PROXY_ERROR_LOG
89 mountPath: "/run/kongssl"
94 secretName: kongssl-secret