feat(nginx): 新增nginx ingress配置

这个提交包含在:
2024-04-12 14:23:13 +08:00 未验证
父节点 c42a9b6e05
当前提交 4ab8e25766
修改 14 个文件,包含 119 行新增90 行删除
+11 -11
查看文件
@@ -43,18 +43,18 @@ spec:
LANGS: zh-CN,en-US
NAMES: 简体中文,English
extraVolumes:
- name: gitea-custom-templates-volume
configMap:
name: gitea-custom-templates
items:
- key: home.tmpl
path: home.tmpl
- key: extra_links.tmpl
path: custom/extra_links.tmpl
- name: gitea-custom-templates-volume
configMap:
name: gitea-custom-templates
items:
- key: home.tmpl
path: home.tmpl
- key: extra_links.tmpl
path: custom/extra_links.tmpl
extraContainerVolumeMounts:
- name: gitea-custom-templates-volume
readOnly: true
mountPath: /data/gitea/templates
- name: gitea-custom-templates-volume
readOnly: true
mountPath: /data/gitea/templates
+18
查看文件
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-http
namespace: infra-devops
spec:
ingressClassName: nginx
rules:
- host: git.dev.cm
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: gitea-http
port:
number: 3000
-19
查看文件
@@ -1,19 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: gitea-http
namespace: infra-devops
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`git.dev.cm`)
middlewares:
- name: compress
- name: cache
services:
- kind: Service
name: gitea-http
namespace: infra-devops
port: 3000
-14
查看文件
@@ -1,14 +0,0 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteTCP
metadata:
name: gitea-ssh
namespace: infra-devops
spec:
entryPoints:
- ssh
routes:
- match: HostSNI(`*`)
services:
- name: gitea-ssh
namespace: infra-devops
port: 22
+14
查看文件
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: gitea-ssh-lb
namespace: infra-devops
spec:
selector:
app.kubernetes.io/name: gitea
app.kubernetes.io/instance: gitea
ports:
- protocol: TCP
port: 22
targetPort: 22
type: LoadBalancer
+8 -8
查看文件
@@ -19,11 +19,11 @@ spec:
type: "hard"
key: "topology.kubernetes.io/region"
values:
- "cn-sh"
- "cn-sh"
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
pgpool:
image:
debug: false
@@ -31,9 +31,9 @@ spec:
type: "hard"
key: "topology.kubernetes.io/region"
values:
- "cn-sh"
- "cn-sh"
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"