I have a kubernetes system and i wanna add suricata deploy or other some add to other node in system. How can i assign it? for example in above i have a suricata-deploy.yaml file. how can i add to other node it and connection to kubernetes? ? know that pod is possible, but deployment file? and have you any pod file of suricata etc.
Note: nodeSelector:
test:suricata
is true part?
- question: convert docker-compose file to kubernetes is possible? (as like "kompose" tool)
apiVersion: apps/v1
kind: Deployment
metadata:
name: suricata-deployment
spec:
selector:
matchLabels:
app: suricata
minReadySeconds: 5
template:
metadata:
labels:
app: suricata
spec:
hostNetwork: true
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: task-pv-claim
containers:
- name: suricata
image: jasonish/suricata:latest
args: ["-i eno1"]
securityContext:
capabilities:
add:
- NET_ADMIN
- SYS_NICE
nodeSelector:
test:suricata
volumeMounts:
- mountPath: "/var/log/suricata"
name: task-pv-storage
question from:
https://stackoverflow.com/questions/65937454/how-to-add-suricata-to-kubernetes-within-assign-to-other-nodes 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…