2017-01-06 19:36:18 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: omsagent
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: omsagent
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: WSID
|
|
|
|
value: <your workspace ID>
|
|
|
|
- name: KEY
|
|
|
|
value: <your key>
|
|
|
|
image: microsoft/oms
|
|
|
|
name: omsagent
|
|
|
|
ports:
|
|
|
|
- containerPort: 25225
|
|
|
|
protocol: TCP
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/run/docker.sock
|
|
|
|
name: docker-sock
|
|
|
|
volumes:
|
|
|
|
- name: docker-sock
|
|
|
|
hostPath:
|
2017-06-18 13:34:24 +00:00
|
|
|
path: /var/run/docker.sock
|
|
|
|
type: Socket
|