How to deploy SpringBoot HelloWorld app in OpenShift

Описание к видео How to deploy SpringBoot HelloWorld app in OpenShift

apiVersion: apps/v1
kind: Deployment
metadata:
name: hello2
labels:
app: hello2
spec:
replicas: 1
selector:
matchLabels:
app: hello2
template:
metadata:
labels:
app: hello2
spec:
containers:
name: hello2
image: 06141977/hello2
ports:
containerPort: 80
env:
name: SPRING_PROFILES_ACTIVE
value: "docker"
---
apiVersion: v1
kind: Service
metadata:
name: hello2
spec:
selector:
app: hello2
ports:
protocol: TCP
port: 80
targetPort: 80

-------
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: hello2
spec:
host: hello2-default.apps-crc.testing
to:
kind: Service
name: hello2
weight: 100
port:
targetPort: 80
wildcardPolicy: None

Комментарии

Информация по комментариям в разработке