Created
March 15, 2023 02:11
-
-
Save kaovilai/5ff86bcef7485221edf6c6d0e9ff410a to your computer and use it in GitHub Desktop.
single todolist pod from https://github.com/openshift/oadp-operator/blob/master/tests/e2e/sample-applications/mysql-persistent/mysql-persistent-twovol-csi.yaml
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: Pod | |
apiVersion: v1 | |
metadata: | |
name: todolist | |
namespace: mysql-persistent | |
labels: | |
e2e-app: "true" | |
app: todolist | |
service: todolist | |
spec: | |
containers: | |
- name: todolist | |
image: quay.io/konveyor/todolist-mariadb-go:v2_4 | |
env: | |
- name: foo | |
value: bar | |
ports: | |
- containerPort: 8000 | |
protocol: TCP | |
volumeMounts: | |
- name: applog | |
mountPath: /tmp/log/todoapp/ | |
volumes: | |
- name: applog | |
persistentVolumeClaim: | |
claimName: applog | |
initContainers: | |
- name: init-myservice | |
image: registry.access.redhat.com/ubi8/ubi:latest | |
command: ['sh', '-c', 'sleep 10; until getent hosts mysql; do echo waiting for mysql; sleep 5; done;'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment