Welcome to the Linux Foundation Forum!

Lab6.1 YAML question

bryonbaker
bryonbaker Posts: 28
edited February 2019 in LFD259 Class Forum

Hi,
In lab 6.1 the YAML has two declarations for name under the container field. "secondapp" and "busy." Why?

Thanks

apiVersion: v1
kind: Pod
metadata:
  name: secondapp
spec:
  securityContext:
    runAsUser: 1000
  containers:
  - image: busybox
    name: secondapp
    command:
      - sleep
      - "3600"
    securityContext:
      runAsUser: 2000
      allowPrivilegeEscalation: false
    name: busy

Categories

Upcoming Training