Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 470 Bytes

File metadata and controls

32 lines (28 loc) · 470 Bytes
kubectl config use-context cluster1-admin@cluster1
#vim 12.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: cat
  namespace: cat
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
      - path: /cat
        pathType: Prefix
        backend:
          service:
            name: cat
            port:
              number: 80

k apply -f 12.yaml

curl cka.local:30102/cat