1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- apiVersion: v1
- kind: List
- metadata: {}
- items:
- - apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app: budget-app
- name: budget-app
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: budget-app
- template:
- metadata:
- labels:
- app: budget-app
- spec:
- containers:
- - image: registry.ocp4.example.com:8443/redhattraining/loadtest:v1.0
- name: budget-app
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /api/loadtest/v1/healthz
- port: 8080
- scheme: HTTP
- periodSeconds: 10
- successThreshold: 1
- timeoutSeconds: 1
- resources:
- requests:
- cpu: 100m
- limits:
- cpu: 500m
- - apiVersion: v1
- kind: Service
- metadata:
- labels:
- app: budget-app
- name: budget-app
- spec:
- ports:
- - port: 8080
- protocol: TCP
- targetPort: 8080
- selector:
- app: budget-app
- - apiVersion: route.openshift.io/v1
- kind: Route
- metadata:
- labels:
- app: budget-app
- name: budget-app
- spec:
- host: budget.apps.ocp4.example.com
- port:
- targetPort: 8080
- to:
- kind: Service
- name: budget-app
|