Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

docker - How to add suricata to kubernetes within assign to other nodes?

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?

  1. 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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...