sync en zh yaml in content/zh/example/admin direcroty (#19766)
This commit is contained in:
@@ -10,8 +10,8 @@ metadata:
|
|||||||
name: cloud-controller-manager
|
name: cloud-controller-manager
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
---
|
---
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: system:cloud-controller-manager
|
name: system:cloud-controller-manager
|
||||||
roleRef:
|
roleRef:
|
||||||
@@ -47,7 +47,7 @@ spec:
|
|||||||
image: k8s.gcr.io/cloud-controller-manager:v1.8.0
|
image: k8s.gcr.io/cloud-controller-manager:v1.8.0
|
||||||
command:
|
command:
|
||||||
- /usr/local/bin/cloud-controller-manager
|
- /usr/local/bin/cloud-controller-manager
|
||||||
- --cloud-provider=<YOUR_CLOUD_PROVIDER> # Add your own cloud provider here!
|
- --cloud-provider=[YOUR_CLOUD_PROVIDER] # Add your own cloud provider here!
|
||||||
- --leader-elect=true
|
- --leader-elect=true
|
||||||
- --use-service-account-credentials
|
- --use-service-account-credentials
|
||||||
# these flags will vary for every cloud provider
|
# these flags will vary for every cloud provider
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
k8s-app: dns-autoscaler
|
k8s-app: dns-autoscaler
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -16,18 +16,18 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: autoscaler
|
- name: autoscaler
|
||||||
image: k8s.gcr.io/cluster-proportional-autoscaler-amd64:1.1.1
|
image: k8s.gcr.io/cluster-proportional-autoscaler-amd64:1.6.0
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "20m"
|
cpu: 20m
|
||||||
memory: "10Mi"
|
memory: 10Mi
|
||||||
command:
|
command:
|
||||||
- /cluster-proportional-autoscaler
|
- /cluster-proportional-autoscaler
|
||||||
- --namespace=kube-system
|
- --namespace=kube-system
|
||||||
- --configmap=dns-autoscaler
|
- --configmap=dns-autoscaler
|
||||||
- --target=<SCALE_TARGET>
|
- --target=<SCALE_TARGET>
|
||||||
# When cluster is using large nodes(with more cores), "coresPerReplica" should dominate.
|
# When cluster is using large nodes(with more cores), "coresPerReplica" should dominate.
|
||||||
# If using small nodes, "nodesPerReplica" should dominate.
|
# If using small nodes, "nodesPerReplica" should dominate.
|
||||||
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
|
- --default-params={"linear":{"coresPerReplica":256,"nodesPerReplica":16,"min":1}}
|
||||||
- --logtostderr=true
|
- --logtostderr=true
|
||||||
- --v=2
|
- --v=2
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: dnsutils
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: dnsutils
|
||||||
|
image: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3
|
||||||
|
command:
|
||||||
|
- sleep
|
||||||
|
- "3600"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
restartPolicy: Always
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: constraints-cpu-demo-4
|
name: constraints-cpu-demo-3
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: constraints-cpu-demo-4-ctr
|
- name: constraints-cpu-demo-3-ctr
|
||||||
image: nginx
|
image: nginx
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: pvc-quota-demo-2
|
name: pvc-quota-demo-2
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: pvc-quota-demo
|
name: pvc-quota-demo
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ metadata:
|
|||||||
name: my-scheduler
|
name: my-scheduler
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
---
|
---
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: my-scheduler-as-kube-scheduler
|
name: my-scheduler-as-kube-scheduler
|
||||||
subjects:
|
subjects:
|
||||||
@@ -14,7 +14,7 @@ subjects:
|
|||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
roleRef:
|
roleRef:
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: kube-scheduler
|
name: system:kube-scheduler
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user