Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created March 18, 2023 13:44
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 guitarrapc/06f9fc3186ddcf5df543db6ef8ac9611 to your computer and use it in GitHub Desktop.
Save guitarrapc/06f9fc3186ddcf5df543db6ef8ac9611 to your computer and use it in GitHub Desktop.
Place daemonset without Fargate Node
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: foo-daemonset
spec:
selector:
matchLabels:
k8s-app: foo-daemonset
template:
metadata:
labels:
k8s-app: foo-daemonset
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: eks.amazonaws.com/compute-type
operator: NotIn
values:
- fargate
containers:
- name: foo
image: foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment