Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: route.openshift.io/v1
- kind: Route
- metadata:
- annotations:
- openshift.io/host.generated: "true"
- labels:
- app: ws-so-q
- name: ws-so-q
- namespace: ws-so
- spec:
- host: ws-so-q-ws-so.example.com
- port:
- targetPort: 9090
- tls:
- termination: edge
- to:
- kind: Service
- name: ws-so-q
- weight: 100
- wildcardPolicy: None
- ---
- apiVersion: v1
- kind: Service
- metadata:
- labels:
- app: ws-so-q
- name: ws-so-q
- namespace: ws-so
- spec:
- clusterIP: 172.30.203.109
- ports:
- - name: ws
- port: 9090
- protocol: TCP
- targetPort: 9090
- selector:
- app: ws-so-q
- sessionAffinity: None
- type: ClusterIP
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: ws-so-q
- spec:
- selector:
- matchLabels:
- app: ws-so-q
- template:
- metadata:
- labels:
- app: ws-so-q
- spec:
- containers:
- - name: ws-so-q
- image: myexample.com/stackoverflow/ws-so-q:latest
- imagePullPolicy: Always
- resources:
- limits:
- memory: "128Mi"
- cpu: "500m"
- env:
- - name: "WS_PORT"
- value: "9090"
- ports:
- - name: ws
- containerPort: 9090
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement