Skip to content

Commit

Permalink
Merge branch 'onedr0p:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
gdoteof committed Jun 10, 2023
2 parents 30ac2c0 + 859b8c2 commit 74b9813
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ In order to expose services to the internet you will need to create a [Cloudflar
task configure
```

⚠️ This will print out the clear-text passwords for Grafana and Weave Gitops if you had them set to `generated` in your `.config.env`. Take note of these, you'll need them to log into the applications.

### ⚡ Preparing Ubuntu Server with Ansible

1. Ensure you are able to SSH into your nodes from your workstation using a private SSH key **without a passphrase**. This is how Ansible is able to connect to your remote nodes.
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/apps/default/hajimari/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ spec:
enabled: true
ingressClassName: nginx
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: |
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
hajimari.io/enable: "false"
hosts:
- host: &host "hajimari.${SECRET_DOMAIN}"
Expand Down
10 changes: 2 additions & 8 deletions kubernetes/apps/flux-system/weave-gitops/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ spec:
values:
adminUser:
create: true
createSecret: false
username: admin
ingress:
enabled: true
className: nginx
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: |
10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
hajimari.io/icon: sawtooth-wave
hosts:
- host: &host "gitops.${SECRET_DOMAIN}"
Expand All @@ -52,9 +51,4 @@ spec:
create: true
impersonationResourceNames: ["admin"]
podAnnotations:
secret.reloader.stakater.com/reload: weave-gitops-secret
valuesFrom:
- kind: Secret
name: weave-gitops-secret
valuesKey: adminPassword
targetPath: adminUser.passwordHash
secret.reloader.stakater.com/reload: cluster-user-auth
6 changes: 4 additions & 2 deletions tmpl/kubernetes/weave-gitops-secret.sops.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
apiVersion: v1
kind: Secret
metadata:
name: weave-gitops-secret
name: cluster-user-auth
namespace: flux-system
type: Opaque
stringData:
adminPassword: "${BOOTSTRAP_WEAVE_GITOPS_ADMIN_PASSWORD}"
username: admin
password: "${BOOTSTRAP_WEAVE_GITOPS_ADMIN_PASSWORD}"

0 comments on commit 74b9813

Please sign in to comment.