Initial commit
This commit is contained in:
32
apps/technitium/deployment.yaml
Normal file
32
apps/technitium/deployment.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: technitium-dns
|
||||
labels:
|
||||
app.kubernetes.io/name: technitium-dns
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: technitium-dns
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: technitium-dns
|
||||
spec:
|
||||
volumes:
|
||||
- name: technitium-data
|
||||
persistentVolumeClaim:
|
||||
claimName: technitium-data-pvc
|
||||
containers:
|
||||
- image: technitium/dns-server:latest
|
||||
name: technitium
|
||||
ports:
|
||||
- containerPort: 5380
|
||||
- containerPort: 53
|
||||
protocol: TCP
|
||||
- containerPort: 53
|
||||
protocol: UDP
|
||||
volumeMounts:
|
||||
- name: technitium-data
|
||||
mountPath: "/etc/dns"
|
4
apps/technitium/kustomization.yaml
Normal file
4
apps/technitium/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- services.yaml
|
11
apps/technitium/pvc.yaml
Normal file
11
apps/technitium/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: technitium-data-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
24
apps/technitium/services.yaml
Normal file
24
apps/technitium/services.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: technitium
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app.kubernetes.io/name: technitium-dns
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 5380
|
||||
nodePort: 30011
|
||||
name: http
|
||||
- protocol: TCP
|
||||
port: 53
|
||||
targetPort: 53
|
||||
nodePort: 30012
|
||||
name: dns-tcp
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
targetPort: 53
|
||||
nodePort: 30012
|
||||
name: dns-udp
|
Reference in New Issue
Block a user