do y need to crate a service?
like : apiVersion: v1
kind: Service
metadata:
name: hi
namespace: ing-internal
spec:
selector:
app: hi
ports:
- protocol: TCP
port: 5678
targetPort: 5678
and after the ingres?
Answer given by Admin is completely un-related. The answer is exactly same as question 17, only change name of the ingress to ping and path/name to /hi
Create a YAML file named ping-ingress.yaml with the following content:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ping
namespace: ing-internal
spec:
rules:
- http:
paths:
- path: /hi
pathType: Prefix
backend:
service:
name: hi
port:
number: 5678
Apply this Ingress resource to your cluster:
kubectl apply -f ping-ingress.yaml
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
abu7midan
Highly Voted 8 months, 1 week agoGCPCloudArchitectUser
5 months, 2 weeks agoDevops2023team
4 months, 1 week agoElvi13
Most Recent 2 months agoshure4shure
5 months, 1 week agocp2323
8 months agoVihar112
8 months ago