Skip to content

Commit

Permalink
refactor(k8s): use port name
Browse files Browse the repository at this point in the history
  • Loading branch information
brucetony committed Apr 5, 2024
1 parent 8b539c8 commit a7ca742
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions k8s/helm/gateway/templates/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ spec:
- name: api-gateway
image: ghcr.io/privateaim/node-hub-api-adapter:latest
imagePullPolicy: IfNotPresent # Maybe "Always" during debug
readinessProbe:
httpGet:
path: /healthz
port: 5000
ports:
- containerPort: 5000
name: http-result-srv
readinessProbe:
httpGet:
path: /healthz
port: http-result-srv
env:
- name: API_CLIENT_ID
value: {{ .Values.env.API_CLIENT_ID | default "hub-adapter" | quote }}
Expand Down
7 changes: 4 additions & 3 deletions k8s/manifests/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ spec:
- name: api-gateway
image: ghcr.io/privateaim/node-hub-api-adapter:latest
imagePullPolicy: IfNotPresent # Maybe "Always" during debug
ports:
- containerPort: 5000
name: http-result-srv
readinessProbe:
httpGet:
path: /healthz
port: 5000
ports:
- containerPort: 5000
port: http-result-srv
env:
- name: API_CLIENT_ID
value: "hub-adapter"
Expand Down

0 comments on commit a7ca742

Please sign in to comment.