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
Thanks for the great work you have done regarding the kubernetesinception! =)
I deployed inside the kind cluster an few pods including services to the pods. Is there a easy way to get easy to new service inside the kind pod and expose the service from the kind cluster to the container port that runs the "kind"
My approach is currently:
Service (using nodeport in my example) to the pod that runs kind
kind Service:
type: NodePort
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
nodePort: 30001
Pod that runs kind
kind pod:
ports:
- containerPort: 80
docker images with kind exposes port 80
service inside the kind pod
spec:
type: NodePort
ports:
pod inside the kind pod
spec:
ports:
- containerPort: 3000
kubectl port forwarding to localhost:80 inside the kind pod
How would you make a service from inside the kind pod expose to the deployed pod that runs kind. I would like to use the kind pod as a normal service that exposes only one service inside the kind pod.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Thanks for the great work you have done regarding the kubernetesinception! =)
I deployed inside the kind cluster an few pods including services to the pods. Is there a easy way to get easy to new service inside the kind pod and expose the service from the kind cluster to the container port that runs the "kind"
My approach is currently:
Service (using nodeport in my example) to the pod that runs kind
kind Service:
type: NodePort
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
nodePort: 30001
Pod that runs kind
kind pod:
ports:
- containerPort: 80
docker images with kind exposes port 80
service inside the kind pod
spec:
type: NodePort
ports:
protocol: TCP
port: 30000
targetPort: 3000
nodePort: 30000
pod inside the kind pod
spec:
ports:
- containerPort: 3000
kubectl port forwarding to localhost:80 inside the kind pod
How would you make a service from inside the kind pod expose to the deployed pod that runs kind. I would like to use the kind pod as a normal service that exposes only one service inside the kind pod.
Thanks in advance!
The text was updated successfully, but these errors were encountered: