mirror of
				https://github.com/kubernetes-sigs/external-dns.git
				synced 2025-11-04 04:31:00 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			720 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			720 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
# Running ExternalDNS with limited privileges
 | 
						|
 | 
						|
You can run ExternalDNS with reduced privileges since `v0.5.6` using the following `SecurityContext`.
 | 
						|
 | 
						|
```yaml
 | 
						|
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: external-dns
 | 
						|
spec:
 | 
						|
  strategy:
 | 
						|
    type: Recreate
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app: external-dns
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app: external-dns
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
      - name: external-dns
 | 
						|
        image: k8s.gcr.io/external-dns/external-dns:v0.7.6
 | 
						|
        args:
 | 
						|
        - ... # your arguments here
 | 
						|
        securityContext:
 | 
						|
          runAsNonRoot: true
 | 
						|
          runAsUser: 65534
 | 
						|
          readOnlyRootFilesystem: true
 | 
						|
          capabilities:
 | 
						|
            drop: ["ALL"]
 | 
						|
```
 |