Example yaml:
apiVersion: v1
kind: Pod
metadata:
name: testdns
labels:
app: testdns
spec:
hostNetwork: true
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: testdns
args: ["ng.default.svc"]
# env:
# - name: GODEBUG
# value: netdns=cgo+1
image: xinfengliu/testdns
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: "1"
memory: 20Mi
requests:
cpu: "1"
memory: 20Mi
securityContext:
privileged: true
readOnlyRootFilesystem: true
Content type
Image
Digest
Size
4.1 MB
Last updated
almost 5 years ago
docker pull xinfengliu/testdns