Last active
June 12, 2022 14:05
-
-
Save nownabe/5c064231ce460ef778f5d2f59200e378 to your computer and use it in GitHub Desktop.
Sample Kubernetes Pod YAML for GKE Autopilot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: hello-gke | |
spec: | |
containers: | |
- name: hello | |
image: ghcr.io/shawnlabo/fun | |
resources: | |
requests: | |
cpu: 250m | |
memory: 512Mi | |
ephemeral-storage: 1Gi | |
limits: | |
cpu: 250m | |
memory: 512Mi | |
ephemeral-storage: 1Gi | |
command: | |
- bash | |
- -c | |
- | | |
while :; do | |
figlet -f $(ls /usr/share/figlet/ | grep ".flf" | shuf -n 1) "$MESSAGE" | |
sleep 1 | |
done | |
env: | |
- name: MESSAGE | |
value: "Hello Kubernetes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment