mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #8078 from satnam6502/fluentd-gcp
Convert Fluentd to Cloud Logging pod specs to YAML
This commit is contained in:
commit
e2b7ef8d2c
@ -1,30 +0,0 @@
|
||||
{
|
||||
"apiVersion": "v1beta3",
|
||||
"kind": "Pod",
|
||||
"metadata": {"name": "fluentd-cloud-logging"},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{ "name": "fluentd-cloud-logging",
|
||||
"image": "gcr.io/google_containers/fluentd-gcp:1.5",
|
||||
"env": [
|
||||
{ "name": "FLUENTD_ARGS",
|
||||
"value": "-qq"}
|
||||
],
|
||||
"volumeMounts": [
|
||||
{ "name": "varlog",
|
||||
"mountPath": "/varlog"},
|
||||
{ "name": "containers",
|
||||
"mountPath": "/var/lib/docker/containers"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{ "name": "varlog",
|
||||
"hostPath": { "path": "/var/log"}
|
||||
},
|
||||
{ "name": "containers",
|
||||
"hostPath": { "path": "/var/lib/docker/containers"}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
29
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
Normal file
29
cluster/saltbase/salt/fluentd-gcp/fluentd-gcp.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
apiVersion: v1beta3
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: fluentd-cloud-logging
|
||||
spec:
|
||||
containers:
|
||||
- name: fluentd-cloud-logging
|
||||
image: gcr.io/google_containers/fluentd-gcp:1.5
|
||||
env:
|
||||
- name: "FLUENTD_ARGS"
|
||||
value: "-qq"
|
||||
volumeMounts:
|
||||
- name: varlog
|
||||
mountPath: /varlog
|
||||
- name: containers
|
||||
mountPath: /var/lib/docker/containers
|
||||
- name: token-admin
|
||||
mountPath: /etc/token-admin
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: varlog
|
||||
hostPath:
|
||||
path: /var/log
|
||||
- name: containers
|
||||
hostPath:
|
||||
path: /var/lib/docker/containers
|
||||
- name: token-admin
|
||||
secret:
|
||||
secretName: token-admin
|
@ -1,6 +1,6 @@
|
||||
/etc/kubernetes/manifests/fluentd-gcp.json:
|
||||
/etc/kubernetes/manifests/fluentd-gcp.yaml:
|
||||
file.managed:
|
||||
- source: salt://fluentd-gcp/fluentd-gcp.json
|
||||
- source: salt://fluentd-gcp/fluentd-gcp.yaml
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
|
Loading…
Reference in New Issue
Block a user