Hi, i’m running k8s: Client Version: v1.26.2
Kustomize Version: v4.5.7
Server Version: v1.26.1
Since the “Ghost” image won’t run anymore without a DB it can talk to, I’m trying to write a deployment yaml that has ghost+mariaDB running in one single pod.
But it fails:
Defaulted container “mariadb” out of: mariadb, ghost
Error from server (BadRequest): container “mariadb” in pod “ghost-full-b88d994d4-nfvxj” is waiting to start: trying and failing to pull image
Unfortunately I’ve no clue what’s wrong here…
apiVersion: apps/v1
kind: Deployment # what to create?
metadata:
name: ghost-full
spec: # specification for deployment resource
selector:
matchLabels:
app: mariadb
template: # blueprint for pods
metadata:
labels:
app: mariadb # service will look for this label
spec: # specification for Pods
containers:
- name: mariadb
image: mariadb
ports:
- containerPort: 3306
env:
- name: MARIADB_ROOT_PASSWORD
value: secret
- name: ghost
image: bitnami/ghost
ports:
- containerPort: 8080