Change to use YAML file for the ConfigMap.
This commit is contained in:
parent
408c9919b1
commit
dbc0d2d8ef
3 changed files with 10 additions and 23 deletions
|
|
@ -108,19 +108,6 @@
|
|||
<groupId>org.eclipse.jkube</groupId>
|
||||
<artifactId>openshift-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<resources>
|
||||
<configMap>
|
||||
<name>configmap-hello</name>
|
||||
<entries>
|
||||
<entry>
|
||||
<name>APP_MSG</name>
|
||||
<value>My custom application message.</value>
|
||||
</entry>
|
||||
</entries>
|
||||
</configMap>
|
||||
</resources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
|
|
|||
6
micro-java/src/main/jkube/cm.yml
Normal file
6
micro-java/src/main/jkube/cm.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: configmap-hello
|
||||
data:
|
||||
APP_MSG: sample external configuration
|
||||
|
|
@ -11,12 +11,6 @@ spec:
|
|||
type: Rolling
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
app.openshift.io/vcs-ref: master
|
||||
jkube.io/git-url: git@github.com:maudemor/DO288-apps.git
|
||||
app.openshift.io/vcs-uri: git@github.com:maudemor/DO288-apps.git
|
||||
jkube.io/git-commit: 3bffad109a77ebd72831d8f791c38df68db28e60
|
||||
jkube.io/git-branch: master
|
||||
labels:
|
||||
app: micro-java
|
||||
provider: jkube
|
||||
|
|
@ -24,14 +18,14 @@ spec:
|
|||
group: com.redhat.training.openshift.hello
|
||||
spec:
|
||||
containers:
|
||||
- envFrom:
|
||||
- configMapRef:
|
||||
name: configmap-hello
|
||||
env:
|
||||
- env:
|
||||
- name: KUBERNETES_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: configmap-hello
|
||||
image: micro-java:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: quarkus
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue