Add nodeSelector to avoid pods running on master

This commit is contained in:
dvirlabs 2025-05-27 00:09:37 +03:00
parent c0a7c60a3b
commit 91cb2000eb
3 changed files with 14 additions and 13 deletions

View File

@ -37,30 +37,25 @@ persistence:
- ReadWriteOnce
gitea:
admin:
username: "admin"
password: "admin1234"
email: "dvirlabs@gmail.com"
config:
APP_NAME: "Gitea"
SERVER__ROOT_URL: "https://git.dvirlabs.com"
SERVICE__REGISTER_EMAIL_CONFIRM: "false"
SERVICE__DISABLE_REGISTRATION: "false"
SERVICE__REQUIRE_SIGNIN_VIEW: "false"
MAILER__ENABLED: "false"
SERVICE__ALLOW_ONLY_EXTERNAL_REGISTRATION: "false"
OAUTH2_JWT_SECRET: "randomstring"
additionalEnvVars:
- name: GITEA__oauth__0__client_secret
valueFrom:
secretKeyRef:
name: gitea-keycloak-secret
key: client-secret
oauth:
- name: Keycloak
provider: openidConnect
key: gitea
secret: gIA3YXhesiyIbKkMMtasCVTd7CvUyLwA
autoDiscoverUrl: https://keycloak.dvirlabs.com/realms/lab/.well-known/openid-configuration
scopes: openid profile email
groupClaimName: groups
adminGroup: gitea-admins
restrictedGroup: gitea-users
service:
type: ClusterIP

View File

@ -55,3 +55,6 @@ metrics:
cache:
enabled: true
nodeSelector:
node-role.kubernetes.io/worker: "true"

View File

@ -54,3 +54,6 @@ env:
DB_USER: "wikijs"
DB_PASS: "wikijs123"
DB_NAME: "wiki"
nodeSelector:
node-role.kubernetes.io/worker: "true"