Skip to content

Commit

Permalink
testing local tls
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Nov 22, 2024
1 parent 4066018 commit 72dbc53
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 18 deletions.
4 changes: 2 additions & 2 deletions k8s/helmfile/env/local/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ip: ""
ingressHost: "*.wbaas.localhost"
ingressNameSuffix: main
forceSSL: false
tls: false
tls: true
wbstack:
subdomainSuffix: ".wbaas.localhost"
uiurl: http://wbaas.localhost
uiurl: https://wbaas.localhost
8 changes: 8 additions & 0 deletions k8s/helmfile/env/local/certificates.values.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
certificates:
- name: wikibase-local-tls
commonName: wbaas.localhost
dnsNames:
- '*.wbaas.localhost'
- 'wbaas.localhost'
secretName: wikibase-local-tls
issuerRef: selfsigned-cluster-issuer
6 changes: 3 additions & 3 deletions k8s/helmfile/env/local/private.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gcsApiStaticBucket: 'something'

# TODO move this (and many other things) out of private file...
uiHostName: www.wbaas.localhost
tlsSecret: wikibase-dev-tls
tlsSecret: wikibase-local-tls

services:
queryservice:
Expand All @@ -13,8 +13,8 @@ services:

app:
mailer: smtp
url: http://www.wbaas.localhost
apiUrl: http://api.wbaas.localhost
url: https://www.wbaas.localhost
apiUrl: https://api.wbaas.localhost
ingressHosts:
- host: api.wbaas.localhost
paths:
Expand Down
5 changes: 4 additions & 1 deletion k8s/helmfile/env/local/ui.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ ui:
recaptchaSitekeySecretKey: site_key

ingress:
tls: null
tls:
- hosts:
- {{ .Values.uiHostName }}
secretName: {{ .Values.tlsSecret }}

resources:
limits:
Expand Down
6 changes: 0 additions & 6 deletions k8s/helmfile/env/production/argo-cd-base.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ configs:
controller:
resources:
limits:
cpu: null
memory: 512Mi
requests:
cpu: 250m
Expand All @@ -51,7 +50,6 @@ controller:
applicationSet:
resources:
limits:
cpu: null
memory: 128Mi
requests:
cpu: 100m
Expand All @@ -60,7 +58,6 @@ applicationSet:
dex:
resources:
limits:
cpu: null
memory: 64Mi
requests:
cpu: 10m
Expand All @@ -69,7 +66,6 @@ dex:
notifications:
resources:
limits:
cpu: null
memory: 128Mi
requests:
cpu: 100m
Expand All @@ -78,7 +74,6 @@ notifications:
redis:
resources:
limits:
cpu: null
memory: 128Mi
requests:
cpu: 100m
Expand All @@ -87,7 +82,6 @@ redis:
repoServer:
resources:
limits:
cpu: null
memory: 1024Mi
requests:
cpu: 10m
Expand Down
18 changes: 12 additions & 6 deletions k8s/helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ releases:
# Only deploy the clusterissuers to production clusters for now, as they won't
# work locally for now...
- name: clusterissuers
installed: {{ ne .Environment.Name "local" | toYaml }}
# installed: {{ ne .Environment.Name "local" | toYaml }}
namespace: cert-manager
# TODO use something more generic or from wbstack/charts repo
chart: wbstack/wikibase-cloud-clusterissuers
version: 0.1.0
chart: ../../../charts/charts/wikibase-cloud-clusterissuers
# version: 0.1.0
values:
- email: {{ .Values.external.letsencrypt.email }}
- gceProject: {{ .Values.gceProject }}
Expand All @@ -96,10 +96,10 @@ releases:
- 'wikibase.dev'

- name: certificates
installed: {{ ne .Environment.Name "local" | toYaml }}
# installed: {{ ne .Environment.Name "local" | toYaml }}
namespace: default
chart: wbstack/certificates
version: 0.1.0
chart: ../../../charts/charts/certificates
# version: 0.1.0
<<: *default_release


Expand Down Expand Up @@ -133,6 +133,12 @@ releases:
version: 10.5.0
<<: *default_release

- name: ui
namespace: default
chart: wbstack/ui
version: 0.3.1
<<: *default_release

- name: elasticsearch-2
namespace: default
chart: bitnami/elasticsearch
Expand Down

0 comments on commit 72dbc53

Please sign in to comment.