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
I have an applcation with the below deployment file: apiVersion: apps/v1 kind: Deployment metadata: name: flask-app-deployment namespace: default spec: replicas: 1 selector: matchLabels: app: flask-app-deployment template: metadata: labels: app: flask-app-deployment spec: containers: - name: test-app image: localhost:5001/learn:01 resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 8399
Created a service . kubectl expose deployment flask-app-deployment --type=NodePort --name=my-service
But I am not able to access my application. While I do kubectl get deployments and get services, it shows everything is fine.
The only way I am able to run the application i when I run separately port forwarding. command. kubectl port-forward flask-app-deployment-74b5c95c56-rj5mf 8399:8399
How can I run the application without port forwarding and put whatever needed in service.yaml file?
Please help.
The text was updated successfully, but these errors were encountered:
I have an applcation with the below deployment file:
apiVersion: apps/v1 kind: Deployment metadata: name: flask-app-deployment namespace: default spec: replicas: 1 selector: matchLabels: app: flask-app-deployment template: metadata: labels: app: flask-app-deployment spec: containers: - name: test-app image: localhost:5001/learn:01 resources: limits: memory: "128Mi" cpu: "500m" ports: - containerPort: 8399
kubectl expose deployment flask-app-deployment --type=NodePort --name=my-service
But I am not able to access my application. While I do kubectl get deployments and get services, it shows everything is fine.
The only way I am able to run the application i when I run separately port forwarding. command.
kubectl port-forward flask-app-deployment-74b5c95c56-rj5mf 8399:8399
How can I run the application without port forwarding and put whatever needed in service.yaml file?
Please help.
The text was updated successfully, but these errors were encountered: