tls sans
This commit is contained in:
@@ -33,20 +33,19 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: /data/gitea/postgres
|
path: /data/gitea/postgres
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: postgres
|
name: gitea_db
|
||||||
namespace: projects
|
namespace: projects
|
||||||
labels:
|
labels:
|
||||||
app: postgres
|
app: gitea_db
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 5432
|
port: 5432
|
||||||
targetPort: 5432
|
targetPort: 5432
|
||||||
selector:
|
selector:
|
||||||
app: postgres
|
app: gitea_db
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
|||||||
@@ -1,23 +1,21 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea
|
name: gitea_web
|
||||||
namespace: projects
|
namespace: projects
|
||||||
labels:
|
|
||||||
app: gitea
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: gitea
|
app: gitea_web
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: gitea
|
app: gitea_web
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
image: docker.io/gitea/gitea:1.23.1
|
image: docker.io/gitea/gitea:1.23
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
- containerPort: 22
|
- containerPort: 22
|
||||||
@@ -51,7 +49,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: gitea-data
|
- name: gitea-data
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /mnt/data/gitea
|
path: /data/gitea/data
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
- name: timezone
|
- name: timezone
|
||||||
hostPath:
|
hostPath:
|
||||||
@@ -64,20 +62,16 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea
|
name: gitea_web
|
||||||
namespace: projects
|
namespace: projects
|
||||||
labels:
|
|
||||||
app: gitea
|
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 3000
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
nodePort: 32000
|
|
||||||
- name: ssh
|
- name: ssh
|
||||||
port: 22
|
port: 22
|
||||||
targetPort: 22
|
targetPort: 22
|
||||||
nodePort: 32222
|
|
||||||
selector:
|
selector:
|
||||||
app: gitea
|
app: gitea_web
|
||||||
|
|||||||
@@ -6,5 +6,6 @@
|
|||||||
services.k3s.role = "server";
|
services.k3s.role = "server";
|
||||||
services.k3s.extraFlags = toString [
|
services.k3s.extraFlags = toString [
|
||||||
# "--debug" # Optionally add additional args to k3s
|
# "--debug" # Optionally add additional args to k3s
|
||||||
|
"--tls-san 100.96.241.36"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user