Skip to content

Instantly share code, notes, and snippets.

@sshaaf
Last active February 24, 2021 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshaaf/199721d2c735f1fd28dc7e98df13b4c5 to your computer and use it in GitHub Desktop.
Save sshaaf/199721d2c735f1fd28dc7e98df13b4c5 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
labels:
run: curler
name: curler
spec:
containers:
- name: curler
image: fedora:33
tty: true
oc apply -f curler.yaml
kubectl exec -it curler -- /bin/bash
oc new-app crunchydata/crunchy-pgadmin4:centos8-13.2-4.6.1 -e 'PGADMIN_DEFAULT_EMAIL=user@domain.com' -e 'PGADMIN_DEFAULT_PASSWORD=SuperSecret'
oc expose service/database
oc new-app -e POSTGRESQL_USER=sa -e POSTGRESQL_PASSWORD=sa -e POSTGRESQL_DATABASE="product-db" --name=database openshift/postgresql
oc expose service/crunchy-pgadmin4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment