Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Created August 26, 2021 16:41

Revisions

  1. phillipsj created this gist Aug 26, 2021.
    25 changes: 25 additions & 0 deletions busybox-release.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    apiVersion: v1
    kind: Pod
    metadata:
    name: hostdir-aksnpwin000002
    spec:
    containers:
    - name: hostdir
    image: e2eteam/busybox:1.29
    securityContext:
    windowsOptions:
    runAsUserName: ContainerAdministrator
    command:
    - sleep
    - "6600"
    volumeMounts:
    - name: host-volume
    mountPath: /host
    restartPolicy: Always
    volumes:
    - name: host-volume
    hostPath:
    path: "C:/"
    type: DirectoryOrCreate
    nodeSelector:
    "kubernetes.io/os": windows