File tree 5 files changed +185
-0
lines changed
5 files changed +185
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,12 @@ var settings = []Setting{
248
248
validations : []setFn {IsValidAddon , IsContainerdRuntime },
249
249
callbacks : []setFn {EnableOrDisableAddon },
250
250
},
251
+ {
252
+ name : "helm" ,
253
+ set : SetBool ,
254
+ validations : []setFn {IsValidAddon },
255
+ callbacks : []setFn {EnableOrDisableAddon },
256
+ },
251
257
{
252
258
name : "hyperv-virtual-switch" ,
253
259
set : SetString ,
Original file line number Diff line number Diff line change
1
+ # Copyright The Helm Authors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ apiVersion: apps/v1
16
+ kind: Deployment
17
+ metadata:
18
+ labels:
19
+ app: helm
20
+ name: tiller
21
+ addonmanager.kubernetes.io/mode: Reconcile
22
+ kubernetes.io/minikube-addons: helm
23
+ name: tiller-deploy
24
+ namespace: kube-system
25
+ spec:
26
+ replicas: 1
27
+ selector:
28
+ matchLabels:
29
+ app: helm
30
+ name: tiller
31
+ strategy:
32
+ rollingUpdate:
33
+ maxSurge: 1
34
+ maxUnavailable: 1
35
+ type: RollingUpdate
36
+ template:
37
+ metadata:
38
+ labels:
39
+ app: helm
40
+ name: tiller
41
+ spec:
42
+ automountServiceAccountToken: true
43
+ containers:
44
+ - env:
45
+ - name: TILLER_NAMESPACE
46
+ value: kube-system
47
+ - name: TILLER_HISTORY_MAX
48
+ value: "0"
49
+ image: gcr.io/kubernetes-helm/tiller:v2.14.3
50
+ imagePullPolicy: IfNotPresent
51
+ livenessProbe:
52
+ failureThreshold: 3
53
+ httpGet:
54
+ path: /liveness
55
+ port: 44135
56
+ scheme: HTTP
57
+ initialDelaySeconds: 1
58
+ periodSeconds: 10
59
+ successThreshold: 1
60
+ timeoutSeconds: 1
61
+ name: tiller
62
+ ports:
63
+ - containerPort: 44134
64
+ name: tiller
65
+ protocol: TCP
66
+ - containerPort: 44135
67
+ name: http
68
+ protocol: TCP
69
+ readinessProbe:
70
+ failureThreshold: 3
71
+ httpGet:
72
+ path: /readiness
73
+ port: 44135
74
+ scheme: HTTP
75
+ initialDelaySeconds: 1
76
+ periodSeconds: 10
77
+ successThreshold: 1
78
+ timeoutSeconds: 1
79
+ resources: {}
80
+ terminationMessagePath: /dev/termination-log
81
+ terminationMessagePolicy: File
82
+ serviceAccount: tiller
83
+ serviceAccountName: tiller
Original file line number Diff line number Diff line change
1
+ # Copyright The Helm Authors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ apiVersion: v1
16
+ kind: ServiceAccount
17
+ metadata:
18
+ name: tiller
19
+ namespace: kube-system
20
+ labels:
21
+ app: helm
22
+ name: tiller
23
+ addonmanager.kubernetes.io/mode: Reconcile
24
+ kubernetes.io/minikube-addons: helm
25
+ ---
26
+ kind: ClusterRoleBinding
27
+ apiVersion: rbac.authorization.k8s.io/v1beta1
28
+ metadata:
29
+ name: tiller-clusterrolebinding
30
+ labels:
31
+ app: helm
32
+ name: tiller
33
+ addonmanager.kubernetes.io/mode: Reconcile
34
+ kubernetes.io/minikube-addons: helm
35
+ subjects:
36
+ - kind: ServiceAccount
37
+ name: tiller
38
+ namespace: kube-system
39
+ roleRef:
40
+ kind: ClusterRole
41
+ name: cluster-admin
42
+ apiGroup: ""
Original file line number Diff line number Diff line change
1
+ # Copyright The Helm Authors.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ apiVersion: v1
16
+ kind: Service
17
+ metadata:
18
+ labels:
19
+ app: helm
20
+ name: tiller
21
+ addonmanager.kubernetes.io/mode: Reconcile
22
+ kubernetes.io/minikube-addons: helm
23
+ name: tiller-deploy
24
+ namespace: kube-system
25
+ spec:
26
+ type: ClusterIP
27
+ ports:
28
+ - name: tiller
29
+ port: 44134
30
+ protocol: TCP
31
+ targetPort: tiller
32
+ selector:
33
+ app: helm
34
+ name: tiller
Original file line number Diff line number Diff line change @@ -327,6 +327,26 @@ var Addons = map[string]*Addon{
327
327
"0640" ,
328
328
true ),
329
329
}, false , "gvisor" ),
330
+ "helm" : NewAddon ([]* BinAsset {
331
+ MustBinAsset (
332
+ "deploy/addons/helm/helm-dp.tmpl" ,
333
+ constants .GuestAddonsDir ,
334
+ "helm-dp.yaml" ,
335
+ "0640" ,
336
+ true ),
337
+ MustBinAsset (
338
+ "deploy/addons/helm/helm-rbac.tmpl" ,
339
+ constants .GuestAddonsDir ,
340
+ "helm-rbac.yaml" ,
341
+ "0640" ,
342
+ true ),
343
+ MustBinAsset (
344
+ "deploy/addons/helm/helm-svc.tmpl" ,
345
+ constants .GuestAddonsDir ,
346
+ "helm-svc.yaml" ,
347
+ "0640" ,
348
+ true ),
349
+ }, false , "helm" ),
330
350
}
331
351
332
352
// AddMinikubeDirAssets adds all addons and files to the list
You can’t perform that action at this time.
0 commit comments