You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiVersion: apps/v1
kind: Deployment
metadata:
name: dynamic-hostport-example
spec:
replicas: 5
selector:
matchLabels:
app: dynamic-hostport-example-deployment
template:
metadata:
annotations:
- #dynamic-hostports.k8s/8080: 'DO NOT SET'+ #dynamic-hostports.k8s/http: 'DO NOT SET'
labels:
app: dynamic-hostport-example-deployment
# This is where the magic happens
- dynamic-hostports: '8080' # Must be a string. Split multiple ports with '.'+ dynamic-hostports: 'http' # Must be a string with port names or numbers. Split multiple ports with '.'
spec:
containers:
- name: dynamic-hostport-example1-container
image: paulbouwer/hello-kubernetes:1.8
env:
- name: MESSAGE
value: Hello from port 8080
#- name: PORT
# value: '8080' # 8080 Is standard port of paulbouwer/hello-kubernete
ports:
- containerPort: 8080
+ name: http
#hostPort: DO NOT SET THIS HERE
The text was updated successfully, but these errors were encountered:
Like:
The text was updated successfully, but these errors were encountered: