Skip to content

Example 5-3 in Kubernetes Patterns, 2nd Edition #2

@bmuschko

Description

@bmuschko

I tried create a Pod directly from the manifest in example 5-3.

apiVersion: v1
kind: Pod
metadata:
  name: simple-random-generator
spec:
  containers:
  - image: k8spatterns/random-generator:1.0
    name: random-generator
    command:
    - "random-generator-runner"
    args:
    - "--seed"
    - "42"

It looks like the executable doesn't come with the container image.

Warning  Failed     2s (x3 over 18s)  kubelet            Error: failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "random-generator-runner": executable file not found in $PATH: unknown

Is this meant to work as-is or is it a hypothetical example where the user has to assume that the executable does exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions