Advertisement
niels68

endpointslive

Jan 4th, 2024
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.85 KB | None | 0 0
  1. apiVersion: networking.k8s.io/v1
  2. kind: Ingress
  3. metadata:
  4.   name: ccoc-ingress
  5.   annotations:
  6.     nginx.ingress.kubernetes.io/rewrite-target: /
  7. spec:
  8.   rules:
  9.   - host: ccoc.spec-cibernos.com
  10.     http:
  11.       paths:
  12.       - path: /
  13.         pathType: Prefix
  14.         backend:
  15.           service:
  16.             name: ccoc-service
  17.             port:
  18.               number: 80
  19. ---
  20. apiVersion: v1
  21. kind: Service
  22. metadata:
  23.   name: ccoc-service
  24. spec:
  25.   selector:
  26.     app: ccoc-app
  27.   ports:
  28.     - protocol: TCP
  29.       port: 80
  30.       targetPort: 8080
  31. ---
  32. apiVersion: discovery.k8s.io/v1
  33. kind: EndpointSlice
  34. metadata:
  35.   name: ccoc-endpointslice
  36.   labels:
  37.     kubernetes.io/service-name: ccoc-service
  38. addressType: IPv4
  39. ports:
  40.   - name: http
  41.     protocol: TCP
  42.     port: 80
  43. endpoints:
  44.   - addresses: ["192.168.5.54"]
  45.     conditions:
  46.       ready: true
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement