Skip to content

Commit

Permalink
I give up. I'll manage the CRDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaykul committed Oct 2, 2023
1 parent b5d1438 commit 4767fc8
Show file tree
Hide file tree
Showing 14 changed files with 4,506 additions and 12 deletions.
2 changes: 1 addition & 1 deletion clusters/poshcode/apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
retryInterval: 10m
timeout: 5m
dependsOn:
- name: services
- name: issuers
sourceRef:
kind: GitRepository
name: bootstrap
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: sources
name: crds
namespace: flux-system
spec:
interval: 1h
interval: 10h
retryInterval: 10m
timeout: 5m
sourceRef:
kind: GitRepository
name: bootstrap
path: ./system/sources
path: ./system/crds
prune: true
wait: true
commonMetadata:
Expand Down
4 changes: 2 additions & 2 deletions clusters/poshcode/issuers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: issuers
namespace: flux-system
spec:
interval: 30m
interval: 1h
retryInterval: 10m
timeout: 5m
dependsOn:
Expand All @@ -17,4 +17,4 @@ spec:
wait: true
commonMetadata:
annotations:
poshcode.org/tenant: sre-team
poshcode.org/tenant: sre-team
2 changes: 1 addition & 1 deletion clusters/poshcode/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
retryInterval: 10m
timeout: 5m
dependsOn:
- name: sources
- name: crds
sourceRef:
kind: GitRepository
name: bootstrap
Expand Down
4,482 changes: 4,482 additions & 0 deletions system/crds/cert-manager-v1.13.1.crds.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions system/crds/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- cert-manager-v1.13.1.crds.yaml
5 changes: 5 additions & 0 deletions system/issuers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This cert-manager deployment is a mess. You have to do three steps in order, BEFORE you install anything that needs certs?

1. Run the CRDS separately (because HELM doesn't support CRD upgrades))
2. Run the HELM chart
3. Install these ClusterIssuers (which depend on the webdeploy-hook in the chart)
2 changes: 1 addition & 1 deletion system/issuers/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resources:
- letsencrypt-production.yaml
- letsencrypt-staging.yaml
- letsencrypt-staging.yaml
6 changes: 6 additions & 0 deletions system/services/cert-manager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Cert Manager](https://cert-manager.io/docs/installation/helm/)

DATE: 2023-10-01
CHART VERSIOn: 1.13.1

TO UPGRADE CHECK: To make sure we use [the latest CRDs](https://cert-manager.io/docs/installation/helm/#option-1-installing-crds-with-kubectl), because we're installing them separately, ahead of time.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ global:
# renewal of a leadership.
# retryPeriod: 15s

installCRDs: true
installCRDs: false

replicaCount: 1

Expand Down
2 changes: 2 additions & 0 deletions system/services/cert-manager/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ spec:
namespace: flux-system
interval: 12h
install:
crds: Skip
remediation:
retries: 2
upgrade:
crds: Skip
remediation:
retries: 5
remediateLastFailure: true
Expand Down
3 changes: 0 additions & 3 deletions system/sources/kustomization.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit 4767fc8

Please sign in to comment.