Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created March 18, 2023 13:44
Embed
What would you like to do?
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