Welcome to the Linux Foundation Forum!

Lab5.5 - Domain Review - creating a Deployment with Volume

Posts: 13
edited November 2023 in LFD259 Class Forum

Hi,

I am going through the Domain review questions for Lab5 and I am trying to create a Deployment which specifies a volume mount to a secret.

I've created a secret called "specialday"

I've created a deployment yaml as per the attached however I am getting this error:

error: error parsing foodie-deployment.yaml: error converting YAML to JSON: yaml: line 27: did not find expected key

From what I've researched, the formatting/synatx is correct.

How should I be specifying the Volume mount to a Secret in a Deployment? Any help is appreciated.

I can't attached the yaml, so I've attached a screenshot.

Comments

  • Found the issue it was the resource {} & status: {} which was created when I ran

    kubectl create deployment foodie --image=nginx --dry-run=client -o yaml >foodie-deployment-test.yaml

    removing them allowed me to create my deployment & pod.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training