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:
parent
eaf20b0fe6
commit
213f257670
2 changed files with 18 additions and 0 deletions
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
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue