Created
April 16, 2021 14:01
-
-
Save rafaeltuelho/af46489658e52b865be14be25c5b6123 to your computer and use it in GitHub Desktop.
Quarkus App DeploymentConfig for Openshift 4 using ubi8/openjdk-8 image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: DeploymentConfig | |
apiVersion: apps.openshift.io/v1 | |
metadata: | |
annotations: | |
openshift.io/generated-by: OpenShiftNewApp | |
name: my-quarkus-app | |
spec: | |
strategy: | |
type: Rolling | |
rollingParams: | |
updatePeriodSeconds: 1 | |
intervalSeconds: 1 | |
timeoutSeconds: 600 | |
maxUnavailable: 25% | |
maxSurge: 25% | |
resources: {} | |
activeDeadlineSeconds: 21600 | |
triggers: | |
- type: ConfigChange | |
- type: ImageChange | |
imageChangeParams: | |
automatic: true | |
containerNames: | |
- rhpam-client-app-quarkus | |
from: | |
kind: ImageStreamTag | |
namespace: rhpam13 | |
name: 'my-quarkus-app:latest' | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
test: false | |
selector: | |
app: my-quarkus-app | |
deploymentconfig: my-quarkus-app | |
template: | |
metadata: | |
labels: | |
app: my-quarkus-app | |
deploymentconfig: my-quarkus-app | |
annotations: | |
openshift.io/generated-by: OpenShiftNewApp | |
spec: | |
containers: | |
- name: rhpam-client-app-quarkus | |
image: >- | |
image-registry.openshift-image-registry.svc:5000/yournamespace/yourimagename | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
env: | |
- name: JAVA_OPTS_APPEND | |
value: >- | |
-Dmy.system.prop.here=anyvalue | |
- name: JAVA_LIB_DIR | |
value: lib | |
- name: JAVA_MAIN_CLASS | |
value: io.quarkus.runner.GeneratedMain | |
resources: {} | |
terminationMessagePath: /dev/termination-log | |
terminationMessagePolicy: File | |
imagePullPolicy: Always | |
restartPolicy: Always | |
terminationGracePeriodSeconds: 30 | |
dnsPolicy: ClusterFirst | |
securityContext: {} | |
schedulerName: default-scheduler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the BuildConfig to generate the quarkus app-image for deployment (via DC)
impor the
ubi8-openjdk-8
image stream into your namespace