Skip to content

Instantly share code, notes, and snippets.

@c-success
Last active January 6, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c-success/344c7c873a3c35c2febec07287d30f5f to your computer and use it in GitHub Desktop.
Save c-success/344c7c873a3c35c2febec07287d30f5f to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ladc-daemonset
spec:
selector:
matchLabels:
app: ladc-daemonset
version: v1.0
template:
metadata:
labels:
app: ladc-daemonset
version: v1.0
spec:
hostNetwork: true
containers:
- name: ladc-daemonset
image: docker.io/a10networks/ladc:rel-4.2.0-p2-ladc
imagePullPolicy: IfNotPresent
env:
- name: ladc_cluster_id
value: "<name of LADC cluster ID"
- name: ladc_api_svr_url
value: "<API server URL>"
- name: ladc_container_node_name
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ladc_container_pod_name
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ladc_container_pod_namespace
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: ladc_vips_from_interfaces
value: "eth0"
- name: ladc_transparent_rule_mark
value: "0x400000"
- name: ladc_tproxy_mark
value: "0x800000"
securityContext:
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment