1{
2 "kind": "Pod",
3 "apiVersion": "v1",
4 "metadata": {
5 "name": "cluster-autoscaler",
6 "namespace": "kubemark",
7 "labels": {
8 "tier": "cluster-management",
9 "component": "cluster-autoscaler"
10 }
11 },
12 "spec": {
13 "hostNetwork": true,
14 "containers": [
15 {
16 "name": "cluster-autoscaler",
17 "image": "registry.k8s.io/cluster-autoscaler:v1.0.0",
18 "command": [
19 "./run.sh",
20 "--kubernetes=https://{{master_ip}}:443?inClusterConfig=0&useServiceAccount=0&auth=/kubeconfig/cluster_autoscaler.kubeconfig",
21 "--v=4",
22 "--logtostderr=true",
23 "--write-status-configmap=true",
24 "--cloud-provider=kubemark",
25 "--nodes={{kubemark_autoscaler_min_nodes}}:{{kubemark_autoscaler_max_nodes}}:{{kubemark_autoscaler_mig_name}}"
26 ],
27 "env": [
28 {
29 "name": "LOG_OUTPUT",
30 "value": "/var/log/cluster-autoscaler.log"
31 }
32 ],
33 "resources": {
34 "requests": {
35 "cpu": "10m",
36 "memory": "300Mi"
37 }
38 },
39 "volumeMounts": [
40 {"name": "cloudconfigmount","mountPath": "/etc/gce.conf", "readOnly": true},
41 {
42 "name": "ssl-certs",
43 "readOnly": true,
44 "mountPath": "/etc/ssl/certs"
45 },
46 {
47 "name": "usrsharecacerts",
48 "readOnly": true,
49 "mountPath": "/usr/share/ca-certificates"
50 },
51 {
52 "name": "logdir",
53 "mountPath": "/var/log",
54 "readOnly": false
55 },
56 {
57 "name": "kubeconfig-volume",
58 "mountPath": "/kubeconfig"
59 }
60 ],
61 "terminationMessagePath": "/dev/termination-log",
62 "imagePullPolicy": "Always"
63 }
64 ],
65 "volumes": [
66 {"name": "cloudconfigmount","hostPath": {"path": "/etc/gce.conf"}},
67 {
68 "name": "ssl-certs",
69 "hostPath": {
70 "path": "/etc/ssl/certs"
71 }
72 },
73 {
74 "name": "usrsharecacerts",
75 "hostPath": {
76 "path": "/usr/share/ca-certificates"
77 }
78 },
79 {
80 "name": "logdir",
81 "hostPath": {
82 "path": "/var/log"
83 }
84 },
85 {
86 "name": "kubeconfig-volume",
87 "secret": {
88 "secretName": "kubeconfig"
89 }
90 }
91 ],
92 "restartPolicy": "Always"
93 }
94}
View as plain text