Open3

podman覚書

MasatMasat

PostgreSQLとpgadminをpodで動かす

yamlファイル

kind: Pod
metadata:
  name: mypod
spec:
  containers:
  - name: mypostgres
    image: postgres
    env:
      - name: POSTGRES_PASSWORD
        value: xxxxxxxxxxx
    ports:
      - containerPort: 5432
  - name: mypgadmin
    image: dpage/pgadmin4
    env:
      - name: PGADMIN_DEFAULT_EMAIL
        value: user@example.com
      - name: PGADMIN_DEFAULT_PASSWORD
        value: xxxxxxxxxx
    ports:
      - containerPort: 80
        hostPort: 5050

podを起動

podman play kube mypod.yaml