Advertisement
Guest User

Untitled

a guest
May 15th, 2020
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.23 KB | None | 0 0
  1. apiVersion: route.openshift.io/v1
  2. kind: Route
  3. metadata:
  4.   annotations:
  5.     openshift.io/host.generated: "true"
  6.   labels:
  7.     app: ws-so-q
  8.   name: ws-so-q
  9.   namespace: ws-so
  10. spec:
  11.   host: ws-so-q-ws-so.example.com
  12.   port:
  13.     targetPort: 9090
  14.   tls:
  15.     termination: edge
  16.   to:
  17.     kind: Service
  18.     name: ws-so-q
  19.     weight: 100
  20.   wildcardPolicy: None
  21. ---
  22. apiVersion: v1
  23. kind: Service
  24. metadata:
  25.   labels:
  26.     app: ws-so-q
  27.   name: ws-so-q
  28.   namespace: ws-so
  29. spec:
  30.   clusterIP: 172.30.203.109
  31.   ports:
  32.   - name: ws
  33.     port: 9090
  34.     protocol: TCP
  35.     targetPort: 9090
  36.   selector:
  37.     app: ws-so-q
  38.   sessionAffinity: None
  39.   type: ClusterIP
  40. ---
  41. apiVersion: apps/v1
  42. kind: Deployment
  43. metadata:
  44.   name: ws-so-q
  45. spec:
  46.   selector:
  47.     matchLabels:
  48.       app: ws-so-q
  49.   template:
  50.     metadata:
  51.       labels:
  52.         app: ws-so-q
  53.     spec:
  54.       containers:
  55.         - name: ws-so-q
  56.           image: myexample.com/stackoverflow/ws-so-q:latest
  57.           imagePullPolicy: Always
  58.           resources:
  59.             limits:
  60.               memory: "128Mi"
  61.               cpu: "500m"
  62.           env:
  63.             - name: "WS_PORT"
  64.               value: "9090"
  65.       ports:
  66.         - name: ws
  67.           containerPort: 9090
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement