Skip to content

Instantly share code, notes, and snippets.

@kaovilai
Created March 15, 2023 02:11
Show Gist options
  • Save kaovilai/5ff86bcef7485221edf6c6d0e9ff410a to your computer and use it in GitHub Desktop.
Save kaovilai/5ff86bcef7485221edf6c6d0e9ff410a to your computer and use it in GitHub Desktop.
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