Removed configuration to be added by student during the activity.

This commit is contained in:
Manuel Aude Morales 2021-05-25 06:48:02 -05:00
parent 6af1de0431
commit f854f3ee70
3 changed files with 23 additions and 18 deletions

View file

@ -104,11 +104,6 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>openshift-maven-plugin</artifactId>
<version>1.2.0</version>
</plugin>
</plugins>
</build>
<profiles>

View file

@ -3,4 +3,3 @@ kind: ConfigMap
metadata:
name: configmap-hello
data:
APP_MSG: sample external configuration

View file

@ -1,20 +1,26 @@
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: micro-java
provider: jkube
version: "1.0"
group: com.redhat.training.openshift.hello
strategy:
rollingParams:
timeoutSeconds: 3600
type: Rolling
name: micro-java
spec:
replicas: 1
selector:
matchLabels:
app: micro-java
provider: jkube
group: com.redhat.training.openshift.hello
template:
metadata:
labels:
app: micro-java
provider: jkube
version: 1.0
version: "1.0"
group: com.redhat.training.openshift.hello
spec:
containers:
@ -23,9 +29,6 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
envFrom:
- configMapRef:
name: configmap-hello
image: micro-java:1.0
imagePullPolicy: IfNotPresent
name: quarkus
@ -33,3 +36,11 @@ spec:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 9779
name: prometheus
protocol: TCP
- containerPort: 8778
name: jolokia
protocol: TCP
securityContext:
privileged: false