mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
chore(gitea): include notes about persistence and volumes in zones in aws
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
# Single-pod, expendable instance for RO view only.
|
# Single-pod, expendable instance for RO view only.
|
||||||
# No need for HA or pod spreading affinity settings.
|
# No need for HA or pod spreading affinity settings.
|
||||||
#
|
#
|
||||||
|
# Gotchas:
|
||||||
|
# - When persistence is enabled the pod requires a volume, but the volume is stored only in one availability zone.
|
||||||
|
# Need to force pod and volume in the same zone. Or find a better solution.
|
||||||
|
# - The 'RollingUpdate' strategy has issues with persistence.
|
||||||
|
# Lock files on disk need to be exclusive and leave new pods crashing.
|
||||||
|
#
|
||||||
# Default values: `helm show values --repo 'https://dl.gitea.com/charts/' 'gitea'`
|
# Default values: `helm show values --repo 'https://dl.gitea.com/charts/' 'gitea'`
|
||||||
###
|
###
|
||||||
|
|
||||||
@@ -28,14 +34,26 @@ persistence:
|
|||||||
size: 10Gi
|
size: 10Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
|
affinity:
|
||||||
|
nodeAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
|
- matchExpressions:
|
||||||
|
- # required due to persistence, see Gotchas in the top comment
|
||||||
|
key: topology.kubernetes.io/zone
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- eu-west-1a
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate # FIXME: RollingUpdate seem to have issues with persistence and locks the new pod in pending
|
type: Recreate # 'RollingUpdate' has issues with persistence, see Gotchas in the top comment
|
||||||
resources:
|
resources:
|
||||||
# seems to usually use 4m CPUs and 125Mi RAM
|
|
||||||
requests:
|
requests:
|
||||||
|
# usually runs on 4m CPUs and 80Mi RAM when chilling unused
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 128Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
|
# bump resources up a lot when needing fast migrations
|
||||||
|
# not usually necessary for normal use
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 196Mi
|
memory: 196Mi
|
||||||
ingress:
|
ingress:
|
||||||
@@ -45,7 +63,8 @@ ingress:
|
|||||||
kubernetes.io/ingress.class: alb
|
kubernetes.io/ingress.class: alb
|
||||||
alb.ingress.kubernetes.io/load-balancer-name: gitea
|
alb.ingress.kubernetes.io/load-balancer-name: gitea
|
||||||
alb.ingress.kubernetes.io/target-type: ip
|
alb.ingress.kubernetes.io/target-type: ip
|
||||||
alb.ingress.kubernetes.io/certificate-arn: 'arn:aws:acm:eu-west-1:012345678901:certificate/01234567-abcd-0123-abcd-0123456789ab'
|
alb.ingress.kubernetes.io/certificate-arn: >-
|
||||||
|
arn:aws:acm:eu-west-1:012345678901:certificate/01234567-abcd-0123-abcd-0123456789ab
|
||||||
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-2016-08
|
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-2016-08
|
||||||
alb.ingress.kubernetes.io/ssl-redirect: 443
|
alb.ingress.kubernetes.io/ssl-redirect: 443
|
||||||
hosts:
|
hosts:
|
||||||
@@ -70,7 +89,7 @@ gitea:
|
|||||||
DISABLE_REGULAR_ORG_CREATION: true
|
DISABLE_REGULAR_ORG_CREATION: true
|
||||||
oauth2_client:
|
oauth2_client:
|
||||||
ENABLE_AUTO_REGISTRATION: true
|
ENABLE_AUTO_REGISTRATION: true
|
||||||
REGISTER_EMAIL_CONFIRM: true
|
REGISTER_EMAIL_CONFIRM: true # only use if mailer settings are working
|
||||||
USERNAME: email
|
USERNAME: email
|
||||||
UPDATE_AVATAR: true
|
UPDATE_AVATAR: true
|
||||||
service:
|
service:
|
||||||
@@ -28,6 +28,7 @@ helm --namespace 'kube-system' get values 'metrics-server'
|
|||||||
helm -n 'monitoring' delete 'grafana'
|
helm -n 'monitoring' delete 'grafana'
|
||||||
|
|
||||||
helm plugin list
|
helm plugin list
|
||||||
|
|
||||||
helm plugin install 'https://github.com/databus23/helm-diff'
|
helm plugin install 'https://github.com/databus23/helm-diff'
|
||||||
helm -n 'pocs' diff upgrade --repo 'https://dl.gitea.com/charts/' 'gitea' 'gitea' -f 'values.yaml'
|
helm -n 'pocs' diff upgrade --repo 'https://dl.gitea.com/charts/' 'gitea' 'gitea' -f 'values.yaml'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user