Skip to content

Commit 84ae0f8

Browse files
Add ACME DNS Resolver for gitlabCD and k8s (#1217)
* wip * Add csi-s3 and have portainer use it * Change request @Hrytsuk 1GB max portainer volume size * Arch Linux Certificates Customization * Fix pgsql exporter failure * [Kubernetes] Introduce on-prem persistent Storage (Longhorn) 🎉 (#979) * Introduce longhorn chart * Further longhorn configuration * Longhorn: further settings configuration * Fix longhorn configuration bugs Extra: introduce longhorn pv vales for portainer * Add comment for deletion longhorn * Further longhorn configuration * Add README.md for Longhorn wit FAQ * Update Longhorn readme * Update readme * Futher LH configuration * Update LH's Readme * Update Longhorn Readme * Improve LH's Readme * LH: Reduce reserved default disk space to 5% Since we use a dedicated disk for LH, we can go ahead with 5% * Use values to set Longhorn storage class * Update LH's Readme * LH Readme: add requirements reference * PR Review: bring back portainer s3 pv * LH: decrease portinaer volume size * Experimental: Try to add tracing to simcore-traefik on master * Fixes ITISFoundation/osparc-simcore#7363 * Arch Linux Certificates Customization - 2 * wip * wip * this might work * k8s wip * wip * wip --------- Co-authored-by: Dustin Kaiser <[email protected]> Co-authored-by: YH <[email protected]>
1 parent 86ecb97 commit 84ae0f8

File tree

4 files changed

+46
-37
lines changed

4 files changed

+46
-37
lines changed

charts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REPO_BASE_DIR := $(shell git rev-parse --show-toplevel)
44
include ${REPO_BASE_DIR}/scripts/common.Makefile
55
include $(REPO_CONFIG_LOCATION)
66

7-
CONFIG_DIR := $(shell dirname $(REPO_CONFIG_LOCATION))
7+
export CONFIG_DIR := $(shell dirname $(REPO_CONFIG_LOCATION))
88
CHART_DIRS := $(wildcard $(REPO_BASE_DIR)/charts/*/)
99

1010
.PHONY: .check-helmfile-installed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
cert-manager:
2+
extraArgs:
3+
- --dns01-recursive-nameservers="8.8.8.8:53"
4+
- --dns01-recursive-nameservers-only
5+
startupapicheck:
6+
enabled: false
7+
skipDNSResolutionCheck: true
8+
maxConcurrentChallenges: 2
9+
extraObjects:
10+
- |
11+
apiVersion: v1
12+
kind: Secret
13+
metadata:
14+
name: acme-dns-secret
15+
namespace: {{ .Release.Namespace }} # secret must be in same namespace as Cert Manager deployment
16+
type: Opaque
17+
stringData:
18+
{{ $configDir := requiredEnv "CONFIG_DIR" }}
19+
acmedns.json: |
20+
{{ readFile (printf "%s/lego-acme-accounts/acme-dns-accounts.json" $configDir) | indent 8 }}
21+
- |
22+
apiVersion: cert-manager.io/v1
23+
kind: ClusterIssuer
24+
metadata:
25+
name: cert-issuer
26+
namespace: {{ .Release.Namespace }}
27+
spec:
28+
acme:
29+
email: {{ requiredEnv "OSPARC_DEVOPS_MAIL_ADRESS" }}
30+
server: {{ requiredEnv "DNS_CHALLENGE_ACME_SERVER" }}
31+
privateKeySecretRef:
32+
name: cert-manager-acme-private-key
33+
solvers:
34+
- dns01:
35+
cnameStrategy: Follow
36+
acmeDNS:
37+
accountSecretRef:
38+
name: acme-dns-secret
39+
key: acmedns.json
40+
host: {{ requiredEnv "ACME_DNS_API_BASE" }}

charts/cert-manager/values.common.yaml.gotmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ cert-manager:
88

99
webhook:
1010
securePort: 10250
11+
cainjector:
12+
replicaCount: 1
13+
replicaCount: 1
14+
webhook:
15+
replicaCount: 1

charts/cert-manager/values.rfc2136.yaml.gotmpl

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)