Removed configuration to be added by student during the activity.
This commit is contained in:
parent
6af1de0431
commit
f854f3ee70
3 changed files with 23 additions and 18 deletions
|
|
@ -104,11 +104,6 @@
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.eclipse.jkube</groupId>
|
|
||||||
<artifactId>openshift-maven-plugin</artifactId>
|
|
||||||
<version>1.2.0</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
|
||||||
|
|
@ -3,4 +3,3 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: configmap-hello
|
name: configmap-hello
|
||||||
data:
|
data:
|
||||||
APP_MSG: sample external configuration
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,26 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: micro-java
|
||||||
|
provider: jkube
|
||||||
|
version: "1.0"
|
||||||
|
group: com.redhat.training.openshift.hello
|
||||||
|
name: micro-java
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
revisionHistoryLimit: 2
|
|
||||||
selector:
|
selector:
|
||||||
|
matchLabels:
|
||||||
app: micro-java
|
app: micro-java
|
||||||
provider: jkube
|
provider: jkube
|
||||||
group: com.redhat.training.openshift.hello
|
group: com.redhat.training.openshift.hello
|
||||||
strategy:
|
|
||||||
rollingParams:
|
|
||||||
timeoutSeconds: 3600
|
|
||||||
type: Rolling
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: micro-java
|
app: micro-java
|
||||||
provider: jkube
|
provider: jkube
|
||||||
version: 1.0
|
version: "1.0"
|
||||||
group: com.redhat.training.openshift.hello
|
group: com.redhat.training.openshift.hello
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
|
|
@ -23,9 +29,6 @@ spec:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: configmap-hello
|
|
||||||
image: micro-java:1.0
|
image: micro-java:1.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: quarkus
|
name: quarkus
|
||||||
|
|
@ -33,3 +36,11 @@ spec:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- containerPort: 9779
|
||||||
|
name: prometheus
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 8778
|
||||||
|
name: jolokia
|
||||||
|
protocol: TCP
|
||||||
|
securityContext:
|
||||||
|
privileged: false
|
||||||
Loading…
Add table
Reference in a new issue