From 0fe66b44b716bf3acac675d8c57411ff4a37eb17 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 27 Sep 2022 22:17:18 +0200 Subject: [PATCH] chore: remove fw and update Gitea values --- infrastructure/firewall.tf | 25 ------------------- k8s/roles/gitea/templates/values.gitea.yml.j2 | 15 ++++++++--- 2 files changed, 11 insertions(+), 29 deletions(-) delete mode 100644 infrastructure/firewall.tf diff --git a/infrastructure/firewall.tf b/infrastructure/firewall.tf deleted file mode 100644 index db3c130..0000000 --- a/infrastructure/firewall.tf +++ /dev/null @@ -1,25 +0,0 @@ -resource "hcloud_firewall" "k8s_nodes_firewall" { - name = "k8s-nodes" - rule { - direction = "in" - protocol = "icmp" - source_ips = [ - "0.0.0.0/0", - "::/0" - ] - } - - rule { - direction = "in" - protocol = "tcp" - port = "22" - source_ips = [ - "0.0.0.0/0", - "::/0" - ] - } - - apply_to { - label_selector = "cluster=icb4dc0.de" - } -} \ No newline at end of file diff --git a/k8s/roles/gitea/templates/values.gitea.yml.j2 b/k8s/roles/gitea/templates/values.gitea.yml.j2 index 54a60a1..2f4533b 100644 --- a/k8s/roles/gitea/templates/values.gitea.yml.j2 +++ b/k8s/roles/gitea/templates/values.gitea.yml.j2 @@ -13,11 +13,11 @@ ingress: resources: limits: - cpu: 100m - memory: 256Mi + cpu: 500m + memory: 768Mi requests: - cpu: 50m - memory: 128Mi + cpu: 250m + memory: 256Mi persistence: enabled: true @@ -28,6 +28,13 @@ gitea: admin: existingSecret: gitea-admin-credentials config: + git.timeout: + migrate: 3600 + default: 3600 + clone: 3600 + pull: 3600 + gc: 300 + server: PROTOCOL: http ROOT_URL: https://code.icb4dc0.de/