Skip to content

Commit

Permalink
Add authentication example chart
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola committed Sep 12, 2023
1 parent 896a47c commit 2c23d7f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,50 @@ spec:
enabled: true
```
An example of deploying a helm chart from a private repo with authentication:
```yaml
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
namespace: kube-system
name: example-app
spec:
targetNamespace: example-space
createNamespace: true
version: v1.2.3
chart: example-app
repo: https://secure-repo.example.com
authSecret:
name: example-repo-auth
repoCAConfigMap:
name: example-repo-ca
valuesContent: |-
image:
tag: v1.2.2
---
apiVersion: v1
kind: Secret
metadata:
namespace: kube-system
name: example-repo-auth
type: kubernetes.io/basic-auth
stringData:
username: user
password: pass
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: kube-system
name: example-repo-ca
data:
ca.crt: |-
-----BEGIN CERTIFICATE-----
<YOUR CERTIFICATE>
-----END CERTIFICATE-----
```
#### HelmChart Field Definitions
| Field | Default | Description | Helm Argument / Flag Equivalent |
Expand Down

0 comments on commit 2c23d7f

Please sign in to comment.