move password hash to values.yaml, simplify helm install command
This commit is contained in:
26
README.md
26
README.md
@@ -45,23 +45,29 @@ helm version
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Phase 2 — Set credentials
|
## Phase 2 — Set ArgoCD admin password
|
||||||
|
|
||||||
```bash
|
Install `httpd-tools` (one-time):
|
||||||
cp .env.example .env
|
|
||||||
```
|
|
||||||
|
|
||||||
Generate a bcrypt hash of your password and paste it into `.env`:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo dnf install -y httpd-tools
|
sudo dnf install -y httpd-tools
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Generate bcrypt hash and paste it into `manifests/argocd/values.yaml` under `configs.secret.argocdServerAdminPassword`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
htpasswd -nbBC 10 "" YOUR_PASSWORD | tr -d ':\n' | sed 's/$2y/$2a/'
|
htpasswd -nbBC 10 "" YOUR_PASSWORD | tr -d ':\n' | sed 's/$2y/$2a/'
|
||||||
```
|
```
|
||||||
|
|
||||||
Set `ARGOCD_ADMIN_PASSWORD_HASH` in `.env` to the output. This file is gitignored — never commit it.
|
Commit the updated values:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git add manifests/argocd/values.yaml && git commit -m "set argocd admin password hash"
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git push origin main
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -80,11 +86,7 @@ helm repo update
|
|||||||
Install ArgoCD:
|
Install ArgoCD:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source .env
|
helm install argocd argo/argo-cd -n argocd --create-namespace -f manifests/argocd/values.yaml
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
helm install argocd argo/argo-cd -n argocd --create-namespace -f manifests/argocd/values.yaml --set configs.secret.argocdServerAdminPassword="$ARGOCD_ADMIN_PASSWORD_HASH" --set configs.secret.argocdServerAdminPasswordMtime="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Wait for ArgoCD to be ready:
|
Wait for ArgoCD to be ready:
|
||||||
|
|||||||
@@ -18,6 +18,16 @@ global:
|
|||||||
configs:
|
configs:
|
||||||
params:
|
params:
|
||||||
server.insecure: true # TLS terminated at Envoy Gateway
|
server.insecure: true # TLS terminated at Envoy Gateway
|
||||||
|
secret:
|
||||||
|
# Generate: htpasswd -nbBC 10 "" PASSWORD | tr -d ':\n' | sed 's/$2y/$2a/'
|
||||||
|
argocdServerAdminPassword: ""
|
||||||
|
argocdServerAdminPasswordMtime: "2025-01-01T00:00:00Z"
|
||||||
|
|
||||||
server:
|
server:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
httproute:
|
||||||
|
enabled: true
|
||||||
|
parentRefs:
|
||||||
|
- name: envoy-gateway
|
||||||
|
namespace: gateway-system
|
||||||
|
sectionName: http
|
||||||
|
|||||||
Reference in New Issue
Block a user