-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update example manifests for Japanese
Related to registry change, but also adopting any other changes from English upstream.
- Loading branch information
Showing
11 changed files
with
79 additions
and
24 deletions.
There are no files selected for viewing
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
68 changes: 61 additions & 7 deletions
68
content/ja/examples/admin/dns/dns-horizontal-autoscaler.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,87 @@ | ||
kind: ServiceAccount | ||
apiVersion: v1 | ||
metadata: | ||
name: kube-dns-autoscaler | ||
namespace: kube-system | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: system:kube-dns-autoscaler | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["replicationcontrollers/scale"] | ||
verbs: ["get", "update"] | ||
- apiGroups: ["apps"] | ||
resources: ["deployments/scale", "replicasets/scale"] | ||
verbs: ["get", "update"] | ||
# Remove the configmaps rule once below issue is fixed: | ||
# kubernetes-incubator/cluster-proportional-autoscaler#16 | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get", "create"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: system:kube-dns-autoscaler | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kube-dns-autoscaler | ||
namespace: kube-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: system:kube-dns-autoscaler | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dns-autoscaler | ||
name: kube-dns-autoscaler | ||
namespace: kube-system | ||
labels: | ||
k8s-app: dns-autoscaler | ||
k8s-app: kube-dns-autoscaler | ||
kubernetes.io/cluster-service: "true" | ||
spec: | ||
selector: | ||
matchLabels: | ||
k8s-app: dns-autoscaler | ||
k8s-app: kube-dns-autoscaler | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: dns-autoscaler | ||
k8s-app: kube-dns-autoscaler | ||
spec: | ||
priorityClassName: system-cluster-critical | ||
securityContext: | ||
seccompProfile: | ||
type: RuntimeDefault | ||
supplementalGroups: [ 65534 ] | ||
fsGroup: 65534 | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
containers: | ||
- name: autoscaler | ||
image: registry.k8s.io/cluster-proportional-autoscaler-amd64:1.1.1 | ||
image: registry.k8s.io/cpa/cluster-proportional-autoscaler:1.8.4 | ||
resources: | ||
requests: | ||
cpu: "20m" | ||
memory: "10Mi" | ||
command: | ||
- /cluster-proportional-autoscaler | ||
- --namespace=kube-system | ||
- --configmap=dns-autoscaler | ||
- --configmap=kube-dns-autoscaler | ||
# Should keep target in sync with cluster/addons/dns/kube-dns.yaml.base | ||
- --target=<SCALE_TARGET> | ||
# When cluster is using large nodes(with more cores), "coresPerReplica" 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,"preventSinglePointFailure":true,"includeUnschedulableNodes":true}} | ||
- --logtostderr=true | ||
- --v=2 | ||
tolerations: | ||
- key: "CriticalAddonsOnly" | ||
operator: "Exists" | ||
serviceAccountName: kube-dns-autoscaler |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ metadata: | |
spec: | ||
containers: | ||
- name: count | ||
image: busybox | ||
image: busybox:1.28 | ||
args: | ||
- /bin/sh | ||
- -c | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ spec: | |
selector: | ||
matchLabels: | ||
run: php-apache | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
|
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
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
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
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
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
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
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