Skip to content

Instantly share code, notes, and snippets.

@brandond
Created October 9, 2021 08:22
Show Gist options
  • Save brandond/8b81bd9e607bdc18464774a4b1ad20f3 to your computer and use it in GitHub Desktop.
Save brandond/8b81bd9e607bdc18464774a4b1ad20f3 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Secret
metadata:
name: sleep
stringData:
sleep.txt: zzz
---
apiVersion: v1
kind: Pod
metadata:
name: sleep
namespace: default
spec:
restartPolicy: Never
containers:
- args:
- -c
- trap "" sigterm; sleep 9999
image: bash
imagePullPolicy: IfNotPresent
name: sleep-a
volumeMounts:
- name: sleep-volume
mountPath: /sleep
- args:
- -c
- trap "" sigterm; sleep 8888
image: bash
imagePullPolicy: IfNotPresent
name: sleep-b
volumes:
- name: sleep-volume
secret:
secretName: sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment