View custerrole.yaml
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: 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
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: 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
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: static-web | |
labels: | |
role: myrole | |
spec: | |
containers: | |
- name: web | |
image: nginx |
View pod_label_3.yaml
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: nginx-pod-taint-2 | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-pod-taint-2 | |
image: nginx |
View pod_label_2.yaml
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: nginx-pod-taint-2 | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-pod-taint-2 | |
image: nginx |
View pod_label_1.yaml
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: nginx-pod-taint | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-pod-taint | |
image: nginx |
View pod_node_name.yaml
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: nginx-pod-nodename | |
spec: | |
containers: | |
- name: nginx-pod-nodename | |
image: nginx | |
nodeName: kubernetes3 |
View pod_label_podaffinity.yaml
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: 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
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: nginx-pod-podaffinity | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-pod-podaffinity | |
image: nginx |
View pod_node_affinity.yaml
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: nginx-pod-nodeaffinity | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx-pod-nodeaffinity | |
image: nginx |