1
0
Fork 0

containerPort alone is enough, hostPort makes it exposed on the host node

This commit is contained in:
Fleur Kelpin 2018-07-01 00:32:47 +02:00
parent 4cfb7d9d26
commit 9711660fc4
1 changed files with 0 additions and 3 deletions

View File

@ -214,17 +214,14 @@ jenkins:
Ports: Ports:
- name: rest - name: rest
containerPort: "9200" containerPort: "9200"
hostPort: "9200"
- name: api - name: api
containerPort: "9300" containerPort: "9300"
hostPort: "9300"
postgres: postgres:
Image: "postgres" Image: "postgres"
ImageTag: "9.6-alpine" ImageTag: "9.6-alpine"
Ports: Ports:
- name: postgres - name: postgres
containerPort: "5432" containerPort: "5432"
hostPort: "5432"
EnvVars: EnvVars:
- type: Secret - type: Secret
key: PGP_PASSPHRASE key: PGP_PASSPHRASE