Skip to content

Commit

Permalink
Merge pull request #103 from imtoanle/update-coder
Browse files Browse the repository at this point in the history
Update coder
  • Loading branch information
imtoanle authored Jan 25, 2024
2 parents 6805b37 + a09284a commit 4b2b873
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 93 deletions.
13 changes: 3 additions & 10 deletions kubernetes/apps/development/coder/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-development-coder-server
name: cluster-apps-development-coder-v2
namespace: flux-system
spec:
targetNamespace: coder-server
path: ./kubernetes/apps/development/coder/server
targetNamespace: coder-v2
path: ./kubernetes/apps/development/coder/v2
prune: true
sourceRef:
kind: GitRepository
Expand All @@ -15,10 +15,3 @@ spec:
interval: 30m
retryInterval: 1m
timeout: 5m
postBuild:
substitute:
APP: coder-server
VOLSYNC_CAPACITY: 10Gi
VOLSYNC_ACCESSMODES: ReadWriteMany
VOLSYNC_STORAGECLASS: ceph-filesystem
VOLSYNC_SNAPSHOTCLASS: csi-ceph-filesystem
2 changes: 1 addition & 1 deletion kubernetes/apps/development/coder/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: coder-server
name: coder-v2
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
81 changes: 0 additions & 81 deletions kubernetes/apps/development/coder/server/helm-release.yaml

This file was deleted.

42 changes: 42 additions & 0 deletions kubernetes/apps/development/coder/v2/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: &app coder-v2
namespace: coder-v2
spec:
interval: 30m
chart:
spec:
chart: coder
version: 2.7.2
sourceRef:
kind: HelmRepository
name: coder-v2
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
coder:
env:
- name: CODER_ACCESS_URL
value: "https://coder.${SECRET_DOMAIN}"
ingress:
enable: true
className: external
host: &host "coder.${SECRET_DOMAIN}"
wildcardHost: "*-coder.${SECRET_DOMAIN}"
annotations:
external-dns.alpha.kubernetes.io/target: "external.${SECRET_DOMAIN}"
tls:
enable: true
secretName: "coder-tls-secret"
wildcardSecretName: "wildcard-coder-tls-secret"
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helm-release.yaml
- ../../../../templates/volsync
9 changes: 9 additions & 0 deletions kubernetes/flux/repositories/helm/coder-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: coder-v2
namespace: flux-system
spec:
interval: 1h
url: https://helm.coder.com/v2/
1 change: 1 addition & 0 deletions kubernetes/flux/repositories/helm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
- ./bryopsida.yaml
- ./cilium.yaml
- ./cloudnative-pg.yaml
- ./coder-v2.yaml
- ./coredns.yaml
- ./csi-driver-nfs.yaml
- ./dapr.yaml
Expand Down

0 comments on commit 4b2b873

Please sign in to comment.