Skip to content

Commit

Permalink
doc: add imagePullSecrets in kubernetes default example
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Oct 30, 2024
1 parent ac46c75 commit 4d77360
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/helm/elastic-agent/examples/kubernetes-default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,30 @@ In this example we install the built-in `kubernetes` integration with the defaul
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))

## Run:

#### Public image registry:
```console
helm install elastic-agent ../../ \
-f ./agent-kubernetes-values.yaml \
--set outputs.default.type=ESSecretAuthAPI \
--set outputs.default.secretName=es-api-secret
```


#### Private image registry:
Create secret with the contents of docker auth config
```
kubectl create secret generic regcred --from-file=.dockerconfigjson=<your home folder here>/.docker/config.json --type=kubernetes.io/dockerconfigjson
```

Install elastic-agent
```console
helm install elastic-agent ../../ \
-f ./agent-kubernetes-values.yaml \
--set 'agent.imagePullSecrets[0].name=regcred' \
--set outputs.default.type=ESSecretAuthAPI \
--set outputs.default.secretName=es-api-secret

## Validate:

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

0 comments on commit 4d77360

Please sign in to comment.