-
-
Save fedinskiy/a15a1cb0382d31d9f38bc3c65039016e to your computer and use it in GitHub Desktop.
target/kubernetes/kubernetes.yml
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
# the bad one: | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
app.quarkus.io/build-timestamp: 2023-03-27 - 07:48:37 +0000 | |
labels: | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/managed-by: quarkus | |
name: openshift-quickstart | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/name: openshift-quickstart | |
template: | |
metadata: | |
annotations: | |
app.quarkus.io/build-timestamp: 2023-03-27 - 07:48:37 +0000 | |
labels: | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/managed-by: quarkus | |
spec: | |
containers: | |
- env: | |
- name: KUBERNETES_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
- name: JAVA_APP_JAR | |
value: /deployments/quarkus-run.jar | |
image: fedinskiy/openshift-quickstart:1.0.0-SNAPSHOT | |
imagePullPolicy: Always | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /q/health/live | |
port: 9000 | |
scheme: HTTPS | |
initialDelaySeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 10 | |
name: openshift-quickstart | |
ports: | |
- containerPort: 8443 | |
name: https | |
protocol: TCP | |
- containerPort: 8080 | |
name: http | |
protocol: TCP | |
- containerPort: 9000 | |
name: management | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /q/health/ready | |
port: 9000 | |
scheme: HTTPS | |
initialDelaySeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 10 | |
startupProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /q/health/started | |
port: 9000 | |
scheme: HTTPS | |
initialDelaySeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 10 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
app.quarkus.io/build-timestamp: 2023-03-27 - 07:48:37 +0000 | |
labels: | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/managed-by: quarkus | |
name: openshift-quickstart | |
spec: | |
ports: | |
- name: management | |
port: 9000 | |
protocol: TCP | |
targetPort: 9000 | |
- name: http | |
port: 80 | |
protocol: TCP | |
targetPort: 8080 | |
- name: https | |
port: 443 | |
protocol: TCP | |
targetPort: 8443 | |
selector: | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
type: ClusterIP |
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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
annotations: | |
app.quarkus.io/build-timestamp: 2023-03-27 - 08:59:06 +0000 | |
labels: | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/managed-by: quarkus | |
name: openshift-quickstart | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/name: openshift-quickstart | |
template: | |
metadata: | |
annotations: | |
app.quarkus.io/build-timestamp: 2023-03-27 - 08:59:06 +0000 | |
labels: | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/managed-by: quarkus | |
spec: | |
containers: | |
- env: | |
- name: KUBERNETES_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
- name: JAVA_APP_JAR | |
value: /deployments/quarkus-run.jar | |
image: fedinskiy/openshift-quickstart:1.0.0-SNAPSHOT | |
imagePullPolicy: Always | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /q/health/live | |
port: 8080 | |
scheme: HTTP | |
initialDelaySeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 10 | |
name: openshift-quickstart | |
ports: | |
- containerPort: 8080 | |
name: http | |
protocol: TCP | |
- containerPort: 8443 | |
name: https | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /q/health/ready | |
port: 8080 | |
scheme: HTTP | |
initialDelaySeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 10 | |
startupProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /q/health/started | |
port: 8080 | |
scheme: HTTP | |
initialDelaySeconds: 5 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 10 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
annotations: | |
app.quarkus.io/build-timestamp: 2023-03-27 - 08:59:06 +0000 | |
labels: | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
app.kubernetes.io/managed-by: quarkus | |
name: openshift-quickstart | |
spec: | |
ports: | |
- name: https | |
port: 443 | |
protocol: TCP | |
targetPort: 8443 | |
- name: http | |
port: 80 | |
protocol: TCP | |
targetPort: 8080 | |
selector: | |
app.kubernetes.io/name: openshift-quickstart | |
app.kubernetes.io/version: 1.0.0-SNAPSHOT | |
type: ClusterIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment