WIP:feat(ch9s6): add custom dc and cm resources
Use the fabric8 plugin to add a custom deployment config and config map as part of the deployment to OpenShift.
This commit is contained in:
7
micro-java/src/main/fabric8/cm.yml
Normal file
7
micro-java/src/main/fabric8/cm.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: env-config
|
||||
data:
|
||||
APP_MSG:
|
||||
|
||||
11
micro-java/src/main/fabric8/deployment.yml
Normal file
11
micro-java/src/main/fabric8/deployment.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- envFrom:
|
||||
- configMapRef:
|
||||
name: env-config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user