zradeg

service-with-auto-elb

Nov 15th, 2023
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.86 KB | None | 0 0
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5.   annotations:
  6.     kubernetes.io/elb.class: union
  7.     kubernetes.io/session-affinity-mode: SOURCE_IP
  8.     kubernetes.io/elb.subnet-id: 0258f8d9-c393-45ef-96b1-c242a0b6e18d
  9.     kubernetes.io/elb.autocreate: "{\"type\":\"private\",\"bandwidth_name\": \"cce-bandwidth- 1551163379627\", \"bandwidth_chargemode\":\"bandwidth\",\"bandwidth_size\":5, \"bandwidth_sharetype\":\"PER\", \"name\":\"infra-elb-1\"}"
  10.   labels:
  11.     app.kubernetes.io/name: traefik
  12.     app.kubernetes.io/instance: traefik
  13.   name: traefik
  14. spec:
  15.   type: LoadBalancer
  16.   loadBalancerIP: 1.2.3.4
  17.   selector:
  18.     app.kubernetes.io/name: traefik
  19.     app.kubernetes.io/instance: traefik
  20.   ports:
  21.   - port: 80
  22.     name: web
  23.     targetPort: "web"
  24.     protocol: "TCP"
  25.   - port: 443
  26.     name: websecure
  27.     targetPort: "websecure"
  28.     protocol: "TCP"
  29.  
Advertisement
Add Comment
Please, Sign In to add comment