Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo/daemonset.yaml file #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions demo/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
---
apiVersion: "apps/v1"
kind: "DaemonSet"
metadata:
name: "kube-iptables-tailer"
namespace: "kube-system"
spec:
selector:
matchLabels:
app: "kube-iptables-tailer"
template:
metadata:
labels:
app: "kube-iptables-tailer"
spec:
serviceAccount: kube-iptables-tailer
containers:
- name: "kube-iptables-tailer"
command:
- "/kube-iptables-tailer"
- "--log_dir=/my-service-logs" # change the output directory of service logs
- "--v=4" # enable V-leveled logging at this level
env:
- name: "IPTABLES_LOG_PATH"
value: "/var/log/iptables.log"
- name: "IPTABLES_LOG_PREFIX"
# log prefix defined in your iptables chains
value: "calico-drop:"
image: "boxinc/kube-iptables-tailer:v0.1.0"
volumeMounts:
- name: "iptables-logs"
mountPath: "/var/log"
readOnly: true
- name: "service-logs"
mountPath: "/my-service-logs"
# An example DaemonSet spec for kube-iptables-tailer, with the required RBAC roles defined.

volumes:
- name: "iptables-logs"
hostPath:
# absolute path of the directory containing iptables log file on your host
path: "/var/log"
- name: "service-logs"
emptyDir: {}
apiVersion: "apps/v1"
kind: "DaemonSet"
metadata:
name: "kube-iptables-tailer"
namespace: "kube-system"
spec:
selector:
matchLabels:
app: "kube-iptables-tailer"
template:
metadata:
labels:
app: "kube-iptables-tailer"
spec:
containers:
- name: "kube-iptables-tailer"
command:
- "/kube-iptables-tailer"
- "--log_dir=/my-service-logs" # change the output directory of service logs
- "--v=4" # enable V-leveled logging at this level
env:
- name: "IPTABLES_LOG_PATH"
value: "/var/log/iptables.log"
- name: "IPTABLES_LOG_PREFIX"
# log prefix defined in your iptables chains
value: "calico-drop:"
image: "boxinc/kube-iptables-tailer:v0.2.0"
volumeMounts:
- name: "iptables-logs"
mountPath: "/var/log"
readOnly: true
- name: "service-logs"
mountPath: "/my-service-logs"
volumes:
- name: "iptables-logs"
hostPath:
# absolute path of the directory containing iptables log file on your host
path: "/var/log"
- name: "service-logs"
emptyDir: {}
serviceAccountName: kube-iptables-tailer

---

Expand All @@ -60,9 +60,9 @@ rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: ["v1"]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create"]

---

Expand Down