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

doc(promtail/installation):kubectl apply -f *.yml error #1451

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
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
29 changes: 15 additions & 14 deletions docs/clients/promtail/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,18 @@ spec:
- name: logs
hostPath: HOST_PATH
- name: promtail-config
configMap
configMap:
name: promtail-configmap
containers:
- name: promtail-container
args:
- -config.file=/etc/promtail/promtail.yaml
volumeMounts:
- name: logs
mountPath: MOUNT_PATH
- name: promtail-config
mountPath: /etc/promtail
image: grafana/promtail
args:
- -config.file=/etc/promtail/promtail.yaml
volumeMounts:
- name: logs
mountPath: MOUNT_PATH
- name: promtail-config
mountPath: /etc/promtail
...

---configmap.yaml
Expand All @@ -92,11 +93,11 @@ kind: ClusterRole
metadata:
name: promtail-clusterrole
rules:
- apiGroups:
resources:
- nodes
- services
- pod
- apiGroups:[""]
resources:
- nodes
- services
- pod
verbs:
- get
- watch
Expand All @@ -108,7 +109,7 @@ metadata:
name: promtail-serviceaccount

---Rolebinding
apiVersion: rbac.authorization.k9s.io/v1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: promtail-clusterrolebinding
Expand Down