-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: acmedns * fix: create tls secret * fix: acmedns secret base64 * fix: pipeline b64dec * fix: acmedns host * chore: prompts * fix: acmedns secret placeholder cannot b64dec
- Loading branch information
1 parent
97939b5
commit dbca6f0
Showing
4 changed files
with
112 additions
and
11 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
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,44 @@ | ||
apiVersion: v1 | ||
stringData: | ||
acmedns.json: | | ||
{ | ||
"{{ .cloudDomain }}": {{ empty .acmednsSecret | ternary "<acmedns-secret-placeholder>" (.acmednsSecret | b64dec) }} | ||
} | ||
kind: Secret | ||
metadata: | ||
name: acme-dns | ||
namespace: sealos-system | ||
type: Opaque | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: acme-dns-issuer | ||
namespace: sealos-system | ||
spec: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
privateKeySecretRef: | ||
name: letsencrypt-prod | ||
solvers: | ||
- dns01: | ||
acmeDNS: | ||
host: https://{{ .acmednsHost }} | ||
accountSecretRef: | ||
name: acme-dns | ||
key: acmedns.json | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: wildcard-cert | ||
namespace: sealos-system | ||
spec: | ||
secretName: wildcard-cert | ||
dnsNames: | ||
- "{{ .cloudDomain }}" | ||
- "*.{{ .cloudDomain }}" | ||
issuerRef: | ||
name: acme-dns-issuer | ||
kind: Issuer |
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