Advertisement
Guest User

Untitled

a guest
Nov 27th, 2020
215
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ---
  2. apiVersion: traefik.containo.us/v1alpha1
  3. kind: IngressRoute
  4. metadata:
  5.   name: webapp-ingressroute
  6.   namespace: traefik
  7.   labels:
  8. spec:
  9.   entryPoints:
  10.    - websecure
  11.   routes:
  12.     - match: Host(`couchdb.test.io`)
  13.       kind: Rule
  14.       services:
  15.         - name: central-db-service
  16.           kind: Service
  17.           port: 5984
  18.           namespace: dev
  19.   tls:
  20.     secretName: certificate
  21. ---
  22. kind: Endpoints
  23. apiVersion: v1
  24. metadata:
  25.   name: central-db-service
  26.   namespace: dev
  27. subsets:
  28.   - addresses:
  29.         - ip: 192.168.0.50
  30.     ports:
  31.       - port: 5984
  32.         name: central-db-service
  33. ---
  34. kind: Service
  35. apiVersion: v1
  36. metadata:
  37.   name: central-db-service
  38.   namespace: dev
  39. spec:
  40.   clusterIP: None
  41.   ports:
  42.   - port: 5984
  43.     targetPort: 5984
  44.  
Advertisement
RAW Paste Data Copied
Advertisement