Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: ccoc-ingress
- annotations:
- nginx.ingress.kubernetes.io/rewrite-target: /
- spec:
- rules:
- - host: ccoc.spec-cibernos.com
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: ccoc-service
- port:
- number: 80
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: ccoc-service
- spec:
- selector:
- app: ccoc-app
- ports:
- - protocol: TCP
- port: 80
- targetPort: 8080
- ---
- apiVersion: discovery.k8s.io/v1
- kind: EndpointSlice
- metadata:
- name: ccoc-endpointslice
- labels:
- kubernetes.io/service-name: ccoc-service
- addressType: IPv4
- ports:
- - name: http
- protocol: TCP
- port: 80
- endpoints:
- - addresses: ["192.168.5.54"]
- conditions:
- ready: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement