Skip to content

Instantly share code, notes, and snippets.

@zubron
Created May 21, 2020 11:28
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 zubron/9820158aac7d7718941863361a9ee42f to your computer and use it in GitHub Desktop.
Save zubron/9820158aac7d7718941863361a9ee42f to your computer and use it in GitHub Desktop.
Sonobuoy plugins adapted with node selectors
podSpec:
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
containers: []
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- key: kubernetes.io/e2e-evict-taint-key
operator: Exists
sonobuoy-config:
driver: Job
plugin-name: e2e
result-format: junit
spec:
command:
- /run_e2e.sh
env:
- name: E2E_FOCUS
value: \[Conformance\]
- name: E2E_SKIP
value: \[Disruptive\]|NoExecuteTaintManager
- name: E2E_PARALLEL
value: "1"
- name: E2E_USE_GO_RUNNER
value: "true"
- name: E2E_EXTRA_ARGS
value: --progress-report-url=http://localhost:8099/progress
image: gcr.io/google-containers/conformance:v1.17.0
imagePullPolicy: Always
name: e2e
resources: {}
volumeMounts:
- mountPath: /tmp/results
name: results
podSpec:
nodeSelector:
kubernetes.io/os: linux
kubernetes.io/arch: amd64
containers: []
restartPolicy: Never
serviceAccountName: sonobuoy-serviceaccount
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- key: kubernetes.io/e2e-evict-taint-key
operator: Exists
sonobuoy-config:
driver: DaemonSet
plugin-name: systemd-logs
result-format: raw
spec:
command:
- /bin/sh
- -c
- /get_systemd_logs.sh && while true; do echo "Sleeping for 1h to avoid daemonset
restart"; sleep 3600; done
env:
- name: CHROOT_DIR
value: /node
- name: RESULTS_DIR
value: /tmp/results
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: sonobuoy/systemd-logs:v0.3
imagePullPolicy: Always
name: systemd-logs
resources: {}
securityContext:
privileged: true
volumeMounts:
- mountPath: /tmp/results
name: results
- mountPath: /node
name: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment