Skip to content

Commit b0c4633

Browse files
eero-tPaweł Szulik
authored andcommitted
Kubectl has supported 'kustomize' since v1.14
v1.14 was released in March 2019. I.e. there is not anymore need to use a separate tool for it.
1 parent f2f65b4 commit b0c4633

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

deploy/kubernetes/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ cAdvisor uses [Kustomize](https://github.com/kubernetes-sigs/kustomize) to manag
66

77
From the cadvisor/ directory, to generate the base daemonset:
88
```
9-
kustomize build deploy/kubernetes/base
9+
kubectl kustomize deploy/kubernetes/base
1010
```
1111

1212
To apply the base daemonset to your cluster:
1313
```
14-
kustomize build deploy/kubernetes/base | kubectl apply -f -
14+
kubectl kustomize deploy/kubernetes/base | kubectl apply -f -
1515
```
1616

1717
To generate the daemonset with example patches applied:
1818
```
19-
kustomize build deploy/kubernetes/overlays/examples
19+
kubectl kustomize deploy/kubernetes/overlays/examples
2020
```
2121

2222
To apply the daemonset to your cluster with example patches applied:
2323
```
24-
kustomize build deploy/kubernetes/overlays/examples | kubectl apply -f -
24+
kubectl kustomize deploy/kubernetes/overlays/examples | kubectl apply -f -
2525
```
2626

2727
### cAdvisor with perf support on Kubernetes
@@ -30,7 +30,7 @@ Example of modifications needed to deploy cAdvisor with perf support is provided
3030

3131
To generate and apply the daemonset with patches for cAdvisor with perf support:
3232
```
33-
kustomize build deploy/kubernetes/overlays/examples_perf | kubectl apply -f -
33+
kubectl kustomize deploy/kubernetes/overlays/examples_perf | kubectl apply -f -
3434
```
3535

3636
## Kustomization
@@ -39,7 +39,7 @@ On your own fork of cAdvisor, create your own overlay directoy with your patches
3939

4040
To run the daemonset with your patches applied:
4141
```
42-
kustomize build deploy/kubernetes/overlays/<my_custom_overlays> | kubectl apply -f -
42+
kubectl kustomize deploy/kubernetes/overlays/<my_custom_overlays> | kubectl apply -f -
4343
```
4444

4545
To get changes made to the upstream cAdvisor daemonset, simply rebase your fork of cAdvisor on top of upstream. Since you didn't make changes to the originals, you won't have any conflicts.

0 commit comments

Comments
 (0)