mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 23:45:34 +00:00
38 lines
772 B
YAML
38 lines
772 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: nameserver
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
revisionHistoryLimit: 5
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: nameserver
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: nameserver
|
||
|
spec:
|
||
|
containers:
|
||
|
- imagePullPolicy: IfNotPresent
|
||
|
name: nameserver
|
||
|
ports:
|
||
|
- name: tcp
|
||
|
protocol: TCP
|
||
|
containerPort: 1053
|
||
|
- name: udp
|
||
|
protocol: UDP
|
||
|
containerPort: 1053
|
||
|
volumeMounts:
|
||
|
- name: dnsconfig
|
||
|
mountPath: /config
|
||
|
restartPolicy: Always
|
||
|
serviceAccount: nameserver
|
||
|
serviceAccountName: nameserver
|
||
|
volumes:
|
||
|
- name: dnsconfig
|
||
|
configMap:
|
||
|
name: dnsconfig
|