Skip to content

Instantly share code, notes, and snippets.

@ziozzang
Created October 24, 2019 02:56
Show Gist options
  • Save ziozzang/6fbed3913f12fae26ed85104286be919 to your computer and use it in GitHub Desktop.
Save ziozzang/6fbed3913f12fae26ed85104286be919 to your computer and use it in GitHub Desktop.
# kubectl create -f https://gist.githubusercontent.com/ziozzang/6fbed3913f12fae26ed85104286be919/raw/80a31373b4cf81a6103e8621119a0b90105e6211/k8s-test-pod.yml
apiVersion: v1
kind: ReplicationController
metadata:
name: test
spec:
replicas: 1
selector:
name: test
template:
metadata:
labels:
name: test
spec:
containers:
- name: test
image: centos
command: ["sleep", "inf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment