Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

vignesh vigneshragupathy

🎯
Focusing
View GitHub Profile
View custerrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
rbac.authorization.kubernetes.io/autoupdate: "true"
creationTimestamp: "2019-11-03T13:47:53Z"
labels:
kubernetes.io/bootstrapping: rbac-defaults
name: system:kube-scheduler
resourceVersion: "108110"
View custom_scheduler.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: my-scheduler
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: my-scheduler-as-kube-scheduler
View static-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: static-web
labels:
role: myrole
spec:
containers:
- name: web
image: nginx
View pod_label_3.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-taint-2
labels:
env: test
spec:
containers:
- name: nginx-pod-taint-2
image: nginx
View pod_label_2.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-taint-2
labels:
env: test
spec:
containers:
- name: nginx-pod-taint-2
image: nginx
View pod_label_1.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-taint
labels:
env: test
spec:
containers:
- name: nginx-pod-taint
image: nginx
View pod_node_name.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-nodename
spec:
containers:
- name: nginx-pod-nodename
image: nginx
nodeName: kubernetes3
View pod_label_podaffinity.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-web-nginx-backend
labels:
app: web-nginx-backend
spec:
containers:
- name: nginx-pod-web-nginx-backend
image: nginx
View pod_pod_affinity.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-podaffinity
labels:
env: test
spec:
containers:
- name: nginx-pod-podaffinity
image: nginx
View pod_node_affinity.yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx-pod-nodeaffinity
labels:
env: test
spec:
containers:
- name: nginx-pod-nodeaffinity
image: nginx