Skip to content

Commit 4d77360

Browse files
doc: add imagePullSecrets in kubernetes default example
1 parent ac46c75 commit 4d77360

File tree

1 file changed

+17
-0
lines changed
  • deploy/helm/elastic-agent/examples/kubernetes-default

1 file changed

+17
-0
lines changed

deploy/helm/elastic-agent/examples/kubernetes-default/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,30 @@ In this example we install the built-in `kubernetes` integration with the defaul
1313
2. `kubernetes` integration assets installed through Kibana ([Kibana - Install and uninstall Elastic Agent integration assets](https://www.elastic.co/guide/en/fleet/current/install-uninstall-integration-assets.html))
1414

1515
## Run:
16+
17+
#### Public image registry:
1618
```console
1719
helm install elastic-agent ../../ \
1820
-f ./agent-kubernetes-values.yaml \
1921
--set outputs.default.type=ESSecretAuthAPI \
2022
--set outputs.default.secretName=es-api-secret
2123
```
2224

25+
26+
#### Private image registry:
27+
Create secret with the contents of docker auth config
28+
```
29+
kubectl create secret generic regcred --from-file=.dockerconfigjson=<your home folder here>/.docker/config.json --type=kubernetes.io/dockerconfigjson
30+
```
31+
32+
Install elastic-agent
33+
```console
34+
helm install elastic-agent ../../ \
35+
-f ./agent-kubernetes-values.yaml \
36+
--set 'agent.imagePullSecrets[0].name=regcred' \
37+
--set outputs.default.type=ESSecretAuthAPI \
38+
--set outputs.default.secretName=es-api-secret
39+
2340
## Validate:
2441

2542
1. The Kibana `kubernetes`-related dashboards should start showing up the respective info.

0 commit comments

Comments
 (0)