podinfo domain tweaks
ci / build (push) Waiting to run Details

This commit is contained in:
CJ_Clippy 2024-06-28 17:50:07 -08:00
parent b18fa84edd
commit 3b193f42e9
6 changed files with 25 additions and 10 deletions

View File

@ -3,6 +3,7 @@
"https://json.schemastore.org/yamllint.json": [ "https://json.schemastore.org/yamllint.json": [
"file:///home/cj/Documents/futureporn-monorepo/charts/fp/templates/next.yaml", "file:///home/cj/Documents/futureporn-monorepo/charts/fp/templates/next.yaml",
"file:///home/cj/Documents/futureporn-monorepo/charts/fp/templates/strapi.yaml" "file:///home/cj/Documents/futureporn-monorepo/charts/fp/templates/strapi.yaml"
] ],
"https://json.schemastore.org/kustomization.json": "file:///home/cj/Documents/futureporn-monorepo/clusters/production/infrastructure.yaml"
} }
} }

View File

@ -29,14 +29,15 @@ spec:
annotations: annotations:
kubernetes.io/ingress.class: "traefik" kubernetes.io/ingress.class: "traefik"
traefik.ingress.kubernetes.io/router.priority: "4" traefik.ingress.kubernetes.io/router.priority: "4"
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls: "false"
traefik.ingress.kubernetes.io/router.tls.domains.0.main: podinfo.sbtp.xyz traefik.ingress.kubernetes.io/router.tls.domains.0.main: podinfo.fp.sbtp.xyz
traefik.ingress.kubernetes.io/router.entrypoints: http traefik.ingress.kubernetes.io/router.entrypoints: web
traefik.ingress.kubernetes.io/service.nativelb: podinfo traefik.ingress.kubernetes.io/service.nativelb: podinfo
cert-manager.io/cluster-issuer: "letsencrypt-staging" external-dns.alpha.kubernetes.io/hostname: podinfo.fp.sbtp.xyz
# cert-manager.io/cluster-issuer: "letsencrypt-staging"
# ingress.kubernetes.io/ssl-redirect: "true" # ingress.kubernetes.io/ssl-redirect: "true"
hosts: hosts:
- host: podinfo.sbtp.xyz - host: podinfo.fp.sbtp.xyz
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix

View File

@ -12,7 +12,7 @@ spec:
values: values:
ingress: ingress:
hosts: hosts:
- host: podinfo.sbtp.xyz - host: podinfo.fp.sbtp.xyz
paths: paths:
- path: / - path: /
pathType: ImplementationSpecific pathType: ImplementationSpecific

View File

@ -36,7 +36,7 @@ spec:
- patch: | - patch: |
- op: replace - op: replace
path: /spec/acme/privateKeySecretRef/name path: /spec/acme/privateKeySecretRef/name
value: letsencrypt-staging value: letsencrypt-production
target: target:
kind: ClusterIssuer kind: ClusterIssuer
name: letsencrypt name: letsencrypt
@ -50,7 +50,7 @@ spec:
- patch: | - patch: |
- op: replace - op: replace
path: /metadata/name path: /metadata/name
value: letsencrypt-staging value: letsencrypt-production
target: target:
kind: ClusterIssuer kind: ClusterIssuer
name: letsencrypt name: letsencrypt

View File

@ -40,3 +40,17 @@ spec:
target: target:
kind: ClusterIssuer kind: ClusterIssuer
name: letsencrypt name: letsencrypt
- patch: |
- op: replace
path: /metadata/name
value: letsencrypt-staging
target:
kind: ClusterIssuer
name: letsencrypt
- patch: |
- op: replace
path: /spec/acme/privateKeySecretRef/name
value: letsencrypt-staging
target:
kind: ClusterIssuer
name: letsencrypt

View File

@ -9,7 +9,6 @@ spec:
acme: acme:
# Replace the email address with your own contact email # Replace the email address with your own contact email
email: cj@futureporn.net email: cj@futureporn.net
# The server is replaced in /clusters/production/infrastructure.yaml
server: https://example.com server: https://example.com
privateKeySecretRef: privateKeySecretRef:
name: letsencrypt name: letsencrypt