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>
|
<groupId>org.eclipse.jkube</groupId>
|
||||||
<artifactId>openshift-maven-plugin</artifactId>
|
<artifactId>openshift-maven-plugin</artifactId>
|
||||||
<version>1.2.0</version>
|
<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>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</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
|
type: Rolling
|
||||||
template:
|
template:
|
||||||
metadata:
|
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:
|
labels:
|
||||||
app: micro-java
|
app: micro-java
|
||||||
provider: jkube
|
provider: jkube
|
||||||
|
|
@ -24,14 +18,14 @@ spec:
|
||||||
group: com.redhat.training.openshift.hello
|
group: com.redhat.training.openshift.hello
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- envFrom:
|
- env:
|
||||||
- configMapRef:
|
|
||||||
name: configmap-hello
|
|
||||||
env:
|
|
||||||
- name: KUBERNETES_NAMESPACE
|
- name: KUBERNETES_NAMESPACE
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: configmap-hello
|
||||||
image: micro-java:latest
|
image: micro-java:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: quarkus
|
name: quarkus
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue