1
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

View File

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