Skip to content

Instantly share code, notes, and snippets.

@nownabe
Last active June 12, 2022 14:05
Show Gist options
  • Save nownabe/5c064231ce460ef778f5d2f59200e378 to your computer and use it in GitHub Desktop.
Save nownabe/5c064231ce460ef778f5d2f59200e378 to your computer and use it in GitHub Desktop.
Sample Kubernetes Pod YAML for GKE Autopilot
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