Skip to content

Commit

Permalink
feat(certs): migrate to network NS
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Nov 22, 2024
1 parent 5fe16a1 commit 0c3ee66
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 55 deletions.
22 changes: 0 additions & 22 deletions kubernetes/main/apps/cert-manager/certificates/ks.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/main/apps/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./cert-manager/ks.yaml
- ./certificates/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
namespaceSelector:
any: true
extraArgs:
default-ssl-certificate: cert-manager/${SECRET_DOMAIN}-tls
default-ssl-certificate: network/${SECRET_DOMAIN}-tls
terminationGracePeriodSeconds: 120
topologySpreadConstraints:
- maxSkew: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
namespaceSelector:
any: true
extraArgs:
default-ssl-certificate: cert-manager/${SECRET_DOMAIN}-tls
default-ssl-certificate: network/${SECRET_DOMAIN}-tls
terminationGracePeriodSeconds: 120
topologySpreadConstraints:
- maxSkew: 1
Expand Down
29 changes: 27 additions & 2 deletions kubernetes/main/apps/network/nginx/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@
# yaml-language-server: $schema=https://kube-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app nginx-certificates
namespace: flux-system
spec:
targetNamespace: network
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: cert-manager-issuers
- name: external-secrets-stores
path: ./kubernetes/main/apps/network/nginx/certificates
prune: false
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: true
interval: 30m
timeout: 5m
---
# yaml-language-server: $schema=https://kube-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app nginx-external
namespace: flux-system
Expand All @@ -11,7 +34,8 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: certificates
- name: external-secrets-stores
- name: nginx-certificates
path: ./kubernetes/main/apps/network/nginx/external
prune: true
sourceRef:
Expand All @@ -33,7 +57,8 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: certificates
- name: external-secrets-stores
- name: nginx-certificates
path: ./kubernetes/main/apps/network/nginx/internal
prune: true
sourceRef:
Expand Down
22 changes: 0 additions & 22 deletions kubernetes/utility/apps/cert-manager/certificates/ks.yaml

This file was deleted.

1 change: 0 additions & 1 deletion kubernetes/utility/apps/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./cert-manager/ks.yaml
- ./certificates/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
namespaceSelector:
any: true
extraArgs:
default-ssl-certificate: cert-manager/${SECRET_DOMAIN}-tls
default-ssl-certificate: network/${SECRET_DOMAIN}-tls
terminationGracePeriodSeconds: 120
topologySpreadConstraints:
- maxSkew: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
namespaceSelector:
any: true
extraArgs:
default-ssl-certificate: cert-manager/${SECRET_DOMAIN}-tls
default-ssl-certificate: network/${SECRET_DOMAIN}-tls
terminationGracePeriodSeconds: 120
topologySpreadConstraints:
- maxSkew: 1
Expand Down
30 changes: 27 additions & 3 deletions kubernetes/utility/apps/network/nginx/ks.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@

---
# yaml-language-server: $schema=https://kube-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app nginx-certificates
namespace: flux-system
spec:
targetNamespace: network
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: cert-manager-issuers
- name: external-secrets-stores
path: ./kubernetes/utility/apps/network/nginx/certificates
prune: false
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: true
interval: 30m
timeout: 5m
---
# yaml-language-server: $schema=https://kube-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
Expand All @@ -12,7 +34,8 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: certificates
- name: external-secrets-stores
- name: nginx-certificates
path: ./kubernetes/utility/apps/network/nginx/external
prune: true
sourceRef:
Expand All @@ -34,7 +57,8 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: certificates
- name: external-secrets-stores
- name: nginx-certificates
path: ./kubernetes/utility/apps/network/nginx/internal
prune: true
sourceRef:
Expand Down

0 comments on commit 0c3ee66

Please sign in to comment.