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> </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>

View file

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

View file

@ -1,20 +1,26 @@
spec: ---
replicas: 1 apiVersion: apps/v1
revisionHistoryLimit: 2 kind: Deployment
selector: metadata:
labels:
app: micro-java app: micro-java
provider: jkube provider: jkube
version: "1.0"
group: com.redhat.training.openshift.hello group: com.redhat.training.openshift.hello
strategy: name: micro-java
rollingParams: spec:
timeoutSeconds: 3600 replicas: 1
type: Rolling selector:
matchLabels:
app: micro-java
provider: jkube
group: com.redhat.training.openshift.hello
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