-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor k8s resources to use kustomize.
- Loading branch information
Showing
19 changed files
with
182 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ metadata: | |
name: app-config | ||
data: | ||
website: "localhost" | ||
|
||
hg-domain: "hg-staging.languagforge.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# template, copy into env folder and change the values, then add as a patch to the kustomization.yaml file | ||
|
||
- op: replace | ||
path: /spec/rules/0/host | ||
value: localhost | ||
- op: replace | ||
path: /spec/tls/0/hosts | ||
value: | ||
- localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
# https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: lf-project-assets | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
storageClassName: weekly-snapshots-retain-4 # provided by LTOps | ||
|
||
--- | ||
|
||
# https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: lfmerge-sendreceive-data | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 50Gi | ||
storageClassName: weekly-snapshots-retain-4 # provided by LTOps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: app-config | ||
data: | ||
website: "languageforge.org" | ||
hg-domain: "hg-public.languagforge.org" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# template, copy into env folder and change the values, then add as a patch to the kustomization.yaml file | ||
|
||
- op: replace | ||
path: /spec/rules/0/host | ||
value: languageforge.org | ||
- op: replace | ||
path: /spec/tls/0/hosts | ||
value: | ||
- languageforge.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: languageforge | ||
|
||
resources: | ||
- ../base | ||
|
||
# both next app and next proxy require their own images, but the image name web-languageforge was reused for them | ||
# with a different tag to select the correct image instead of making a new image name | ||
# because of that we have to do a bit of a workaround to allow setting the image tag for the correct container | ||
images: | ||
- name: sillsdev/web-languageforge | ||
newTag: 2023-09-21 | ||
- name: sillsdev/web-languageforge-next-proxy | ||
newName: sillsdev/web-languageforge | ||
newTag: next-proxy-2023-09-21 | ||
- name: sillsdev/web-languageforge-next-app | ||
newName: sillsdev/web-languageforge | ||
newTag: next-app-2023-09-21 | ||
- name: ghcr.io/sillsdev/lfmerge | ||
newTag: 2.0.135 | ||
|
||
patches: | ||
- path: app-config-patch.yaml | ||
- path: lfmerge-pvcs-patch.yaml | ||
- path: ingress-config-patch.yaml | ||
target: | ||
kind: Ingress | ||
name: languageforge-app | ||
namespace: languageforge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: lfmerge-sendreceive-data | ||
spec: | ||
resources: | ||
requests: | ||
storage: 70Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: app-config | ||
data: | ||
website: "staging.languageforge.org" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# template, copy into env folder and change the values, then add as a patch to the kustomization.yaml file | ||
|
||
- op: replace | ||
path: /spec/rules/0/host | ||
value: staging.languageforge.org | ||
- op: replace | ||
path: /spec/tls/0/hosts | ||
value: | ||
- staging.languageforge.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: languageforge | ||
|
||
resources: | ||
- ../base | ||
|
||
# both next app and next proxy require their own images, but the image name web-languageforge was reused for them | ||
# with a different tag to select the correct image instead of making a new image name | ||
# because of that we have to do a bit of a workaround to allow setting the image tag for the correct container | ||
images: | ||
- name: sillsdev/web-languageforge | ||
newTag: develop-20231002-a33383741406cb1823c05a3f6e00d20f35d1ec4d | ||
- name: sillsdev/web-languageforge-next-proxy | ||
newName: sillsdev/web-languageforge | ||
newTag: develop-next-proxy-20231002-a33383741406cb1823c05a3f6e00d20f35d1ec4d | ||
- name: sillsdev/web-languageforge-next-app | ||
newName: sillsdev/web-languageforge | ||
newTag: develop-next-app-20231002-a33383741406cb1823c05a3f6e00d20f35d1ec4d | ||
- name: ghcr.io/sillsdev/lfmerge | ||
newTag: 2.0.135 | ||
|
||
patches: | ||
- path: app-config-patch.yaml | ||
- path: mongo-pvc-patch.yaml | ||
- path: ingress-config-patch.yaml | ||
target: | ||
kind: Ingress | ||
name: languageforge-app | ||
namespace: languageforge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: lf-mongo-data | ||
spec: | ||
storageClassName: xfs-weekly-snapshots-retain-4 # provided by LTOps |
Oops, something went wrong.