mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
docs: document how to use a different security context
This commit is contained in:
parent
6285b2c38d
commit
8163db497d
32
docs/tutorials/security-context.md
Normal file
32
docs/tutorials/security-context.md
Normal file
@ -0,0 +1,32 @@
|
||||
# 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: registry.opensource.zalan.do/teapot/external-dns:v0.5.6 # minimum version is v0.5.6
|
||||
args:
|
||||
- ... # your arguments here
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 65534
|
||||
readOnlyRootFilesystem: true
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
```
|
Loading…
Reference in New Issue
Block a user