add next round
This commit is contained in:
57
apps/technitium/technitium-deploymet.yaml
Normal file
57
apps/technitium/technitium-deploymet.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: technitium
|
||||
name: technitium-deployment
|
||||
namespace: default
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: technitium
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: technitium
|
||||
spec:
|
||||
containers:
|
||||
- image: technitium/dns-server:latest
|
||||
imagePullPolicy: Always
|
||||
name: technitium
|
||||
env:
|
||||
- name: TZ
|
||||
value: Etcd/New_York
|
||||
- name: DNS_SERVER_DOMAIN
|
||||
value: dns-server
|
||||
- name: DNS_SERVER_ADMIN_PASSWORD
|
||||
value: "Nb4^vo9Gg*MFoJ"
|
||||
ports:
|
||||
- containerPort: 5380
|
||||
protocol: TCP
|
||||
- containerPort: 53
|
||||
protocol: TCP
|
||||
- containerPort: 53
|
||||
protocol: UDP
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: technitium-config
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: technitium-config
|
||||
persistentVolumeClaim:
|
||||
claimName: technitium-config
|
||||
22
apps/technitium/technitium-service.yaml
Normal file
22
apps/technitium/technitium-service.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: technitium-service
|
||||
spec:
|
||||
ports:
|
||||
- port: 5380
|
||||
targetPort: 5380
|
||||
name: web-admin
|
||||
- port: 53
|
||||
protocol: TCP
|
||||
targetPort: 53
|
||||
name: dns-tcp
|
||||
- port: 53
|
||||
protocol: UDP
|
||||
targetPort: 53
|
||||
name: dns-udp
|
||||
selector:
|
||||
app: technitium
|
||||
sessionAffinity: None
|
||||
type: LoadBalancer
|
||||
12
apps/technitium/technitium-storage.yaml
Normal file
12
apps/technitium/technitium-storage.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: technitium-config
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: synology-iscsi-storage-custom
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
Reference in New Issue
Block a user