You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gocron/k8s-deploy/gocron-agent.yml

38 lines
873 B

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: gocron-agent
namespace: kube-system
spec:
selector:
matchLabels:
daemon: gocron-agent
template:
metadata:
labels:
daemon: gocron-agent
name: gocron-agent
spec:
containers:
- name: gocron-agent
image: crontab-agent:0.5
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5921
hostPort: 5921
name: gocron-agent
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/log
name: syslog
hostNetwork: true
hostPID: true
restartPolicy: Always
volumes:
- hostPath:
path: /var/log
type: Directory
name: syslog