Merge pull request #3 from bliemli/env

Env
This commit is contained in:
Benjamin Affolter 2021-11-22 15:13:48 +01:00 committed by GitHub
commit 6275aa5d79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View File

@ -18,3 +18,6 @@ spec:
name: simple-example
ports:
- containerPort: 5000
env:
- name: NAME
value: BFH

12
example-app/route.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: simple-example
spec:
port:
targetPort: 5000
to:
kind: Service
name: simple-example
weight: 100
wildcardPolicy: None

View File

@ -5,6 +5,8 @@ metadata:
spec:
ports:
- port: 5000
protocol: TCP
targetPort: 5000
selector:
app: simple-example
type: ClusterIP