fix: use NodePort for registry — resolvable from node host network
This commit is contained in:
@@ -16,7 +16,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: humor-units
|
||||
image: registry.registry.svc.cluster.local:5000/humor-units:latest
|
||||
image: <NODE_IP>:30500/humor-units:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
|
||||
@@ -67,9 +67,8 @@ spec:
|
||||
ports:
|
||||
- port: 5000
|
||||
targetPort: 5000
|
||||
# ClusterIP is fine if you port-forward from dev machine to push.
|
||||
# Change to NodePort or add an Ingress if you want external push access.
|
||||
type: ClusterIP
|
||||
nodePort: 30500
|
||||
type: NodePort
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
|
||||
Reference in New Issue
Block a user