-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various fixes and some tidying up (#472)
* Fix * Deploy from branch * Add certificate * Tweaks * Stop it from ignoring things * Remove patch * Fix a typo * Try patches again * Cert-manager tweaks
- Loading branch information
Showing
10 changed files
with
54 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,12 @@ | ||
--- | ||
version: "3" | ||
|
||
env: | ||
GITHUB_USER: jonnobrow | ||
|
||
tasks: | ||
sync: | ||
desc: Sync flux-system with the Git Repository | ||
vars: | ||
cluster: '{{.cluster| default "coffee-shop-2"}}' | ||
cmds: | ||
- flux reconcile source git flux-system | ||
- flux reconcile source git -n flux-system {{.cluster}} | ||
- flux get kustomizations --watch | ||
silent: true | ||
|
||
generatekey: | ||
desc: Generates a git secret for flux | ||
cmds: | ||
- | | ||
flux create secret git coffee-shop-auth \ | ||
--url=ssh://[email protected]/jonnobrow/coffee-shop \ | ||
--ssh-key-algorithm=ecdsa \ | ||
--ssh-ecdsa-curve=p521 | ||
bootstrap: | ||
desc: Bootstrap cluster with flux | ||
cmds: | ||
- | | ||
flux bootstrap github \ | ||
--owner=$GITHUB_USER \ | ||
--repository=coffee-shop \ | ||
--branch=main \ | ||
--path=./cluster/base \ | ||
--personal | ||
silent: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
kubernetes/coffee-shop-2/apps/cert-manager/certificates/wildcard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: "${SECRET_DOMAIN/./-}" | ||
namespace: cert-manager | ||
spec: | ||
secretName: "${SECRET_DOMAIN/./-}-tls" | ||
issuerRef: | ||
name: letsencrypt-prod | ||
kind: ClusterIssuer | ||
commonName: "${SECRET_DOMAIN}" | ||
dnsNames: | ||
- "${SECRET_DOMAIN}" | ||
- "*.${SECRET_DOMAIN}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
kubernetes/coffee-shop-2/apps/cert-manager/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- namespace.yaml | ||
- ks.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ spec: | |
interval: 30m | ||
url: ssh://[email protected]/Jonnobrow/coffee-shop.git | ||
ref: | ||
branch: coffee-shop-2.0/main | ||
branch: coffee-shop-2.0/initial-migration | ||
secretRef: | ||
name: github-deploy-key | ||
ignore: | | ||
|