logmower-shipper/k8s/dev/logmower.yaml

79 lines
2.0 KiB
YAML
Raw Normal View History

2022-11-09 19:55:54 +00:00
apiVersion: apps/v1
kind: DaemonSet
metadata:
2022-11-09 21:39:03 +00:00
name: logmower-shipper
2022-11-09 19:55:54 +00:00
spec:
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
selector:
matchLabels:
2022-11-09 21:39:03 +00:00
app: logmower-shipper
2022-11-09 19:55:54 +00:00
template:
metadata:
labels:
2022-11-09 21:39:03 +00:00
app: logmower-shipper
2022-11-09 19:55:54 +00:00
spec:
2022-11-09 21:39:03 +00:00
serviceAccountName: logmower-shipper
2022-11-09 19:55:54 +00:00
containers:
2022-11-09 21:39:03 +00:00
- name: logmower-shipper
2022-11-09 19:55:54 +00:00
image: harbor.k-space.ee/rasmus/logmower-shipper
securityContext:
runAsUser: 0
env:
- name: KUBE_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: KUBE_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: MONGODB_URI
valueFrom:
secretKeyRef:
name: mongodb-application-readwrite
key: connectionString.standard
ports:
- containerPort: 8000
name: metrics
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: etcmachineid
mountPath: /etc/machine-id
readOnly: true
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
- name: varlog
mountPath: /var/log
readOnly: true
volumes:
- name: etcmachineid
hostPath:
path: /etc/machine-id
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
- name: varlog
hostPath:
path: /var/log
tolerations:
- operator: "Exists"
effect: "NoExecute"
- operator: "Exists"
effect: "NoSchedule"
---
apiVersion: v1
kind: ServiceAccount
metadata:
2022-11-09 21:39:03 +00:00
name: logmower-shipper
2022-11-09 19:55:54 +00:00
labels:
2022-11-09 21:39:03 +00:00
app: logmower-shipper