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
...
This section is not available anymore. Please use the main Exam Page.CKA Exam Questions
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 11 months, 3 weeks agoGCPCloudArchitectUser
9 months agoDevops2023team
7 months, 4 weeks agoElvi13
Most Recent 5 months, 2 weeks agoshure4shure
8 months, 3 weeks agocp2323
11 months, 2 weeks agoVihar112
11 months, 2 weeks ago