Skip to content

Commit 524e9c9

Browse files
committed
doc: updated readme with correct steps and added an example values file as well
1 parent 5132d83 commit 524e9c9

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

argocd-helm-charts/step-ca/Readme.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,28 @@ trust-manager will trust the cert when pod(client) wants to talk ingress(Traefik
1111
1212
* Deploy step-ca app from [kubeaid/step-ca](https://github.com/Obmondo/kubeaid/tree/master/argocd-helm-charts/step-ca) which will deploy step-certificate, step-issuer, autocert (tls between services) and trust-manager
1313

14-
* Fix values.yaml in your kubeaid-config repo
15-
16-
(example values file)[./examples/values.yaml]
17-
1814
* Set up stepClusterIssuer and add in the values file
1915
NOTE: you can only access the step certificate once the step-certificate pod is ready
2016

2117
```sh
2218
kubectl get -n step-ca -o jsonpath="{.data['root_ca\.crt']}" configmaps/step-ca-step-certificates-certs | base64 | tr -d '\n'
2319

24-
kubectl get -n step-ca -o jsonpath="{.data['ca\.json']}" configmaps/step-ca-step-certificates-config | jq -r .authority.provisioners[0].key.kid)
20+
kubectl get -n step-ca -o jsonpath="{.data['ca\.json']}" configmaps/step-ca-step-certificates-config | jq -r .authority.provisioners[0].key.kid
2521
```
2622

23+
* Fix values.yaml in your kubeaid-config repo, based on the above output
24+
25+
(example values file)[./examples/values.yaml]
26+
2727
* Expose the root CA inside a POD.
2828
NOTE: you can achieve this in multiple way.
2929
* Mounting the secret directly
3030
* Passing an env
3131
* Inject the root ca directly via webhook (k8s)
3232

3333
Golang can read `SSL_CERT_FILE` in which root_ca is present, so client can accept tls when its is signed by an internal CA.
34+
35+
* Imp Notes:
36+
37+
The job created the provisioner password automatically from the helm chart, without the provisioner
38+
password the step-certificate pod won't start, since its waiting for the secret
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
step-certificates:
2+
ca:
3+
name: Kubeaid CA
4+
dns: k8sdemo.kubeaid.io,step-ca-step-certificates.step-ca.svc.cluster.local,127.0.0.1
5+
db:
6+
storageClass: default
7+
8+
stepClusterIssuer:
9+
kid: XPbVtvFWyui3w
10+
root_ca: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJ3ekNDQVdtZ0F3SUJBZ0lRSnFNb2M0UTVsRkgyWEhIaVFCUE5vVEFLQmdncWhrak9QUVFEQWpCQU1Sb3cKR0FZRFZRUUtFeEZEZFdSa2JHVm1hWE5vSUVsdWRHVnliakVpTUNBR0ExVUVBeE1aUTNWa1pHeGxabWx6YUNCSgpiblJsY200Z1VtOXZkQ0JEUVRBZUZ3MHlOVEE0TWpVd09USTBNVFJhRncwek5UQTRNak13T1RJME1UUmFNRUF4CkdqQVlCZ05WQkFvVEVVTjFaR1JzWldacGMyZ2dTVzUwWlhKdU1TSXdJQVlEVlFRREV4bERkV1JrYkdWbWFYTm8KSUVsdWRHVnliaUJTYjI5MElFTkJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUV2eGxWZTlJMwpCaFVvUmNkSElBRjVMNEUwZzF1aW5qSStWNDRoYzBzZUYzODdOd0swZU5qUThWcnlpZ1VNSUdpR2ZxWHVlRnY2CnVwWEJLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K

0 commit comments

Comments
 (0)