7cbe3c2171
ensure there is pin priority for docker package to avoid upgrade of docker to incompatible version remove empty when line ensure there is pin priority for docker package to avoid upgrade of docker to incompatible version force kubeadm upgrade due to failure without --force flag ensure there is pin priority for docker package to avoid upgrade of docker to incompatible version added nodeSelector to have compatibility with hybrid cluster with win nodes, also fix for download with missing container type fixes in syntax and LF for newline in files fix on yamllint check ensure there is pin priority for docker package to avoid upgrade of docker to incompatible version some cleanup for innecesary lines remove conditions for nodeselector
53 lines
1.6 KiB
Django/Jinja
53 lines
1.6 KiB
Django/Jinja
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
labels:
|
|
app: netchecker-agent
|
|
name: netchecker-agent
|
|
namespace: {{ netcheck_namespace }}
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: netchecker-agent
|
|
labels:
|
|
app: netchecker-agent
|
|
spec:
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
operator: Exists
|
|
# When having win nodes in cluster without this patch, this pod cloud try to be created in windows
|
|
nodeSelector:
|
|
beta.kubernetes.io/os: linux
|
|
containers:
|
|
- name: netchecker-agent
|
|
image: "{{ agent_img }}"
|
|
env:
|
|
- name: MY_POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: MY_NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
args:
|
|
- "-v=5"
|
|
- "-alsologtostderr=true"
|
|
- "-serverendpoint=netchecker-service:8081"
|
|
- "-reportinterval={{ agent_report_interval }}"
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
resources:
|
|
limits:
|
|
cpu: {{ netchecker_agent_cpu_limit }}
|
|
memory: {{ netchecker_agent_memory_limit }}
|
|
requests:
|
|
cpu: {{ netchecker_agent_cpu_requests }}
|
|
memory: {{ netchecker_agent_memory_requests }}
|
|
securityContext:
|
|
runAsUser: {{ netchecker_agent_user | default('0') }}
|
|
runAsGroup: {{ netchecker_agent_group | default('0') }}
|
|
serviceAccountName: netchecker-agent
|
|
updateStrategy:
|
|
rollingUpdate:
|
|
maxUnavailable: 100%
|
|
type: RollingUpdate
|