Convert Fluentd to Cloud Logging pod specs to YAML
This commit is contained in:
parent
04c90565c0
commit
e246685468
@ -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:
|
file.managed:
|
||||||
- source: salt://fluentd-gcp/fluentd-gcp.json
|
- source: salt://fluentd-gcp/fluentd-gcp.yaml
|
||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
- mode: 644
|
- mode: 644
|
||||||
|
Loading…
Reference in New Issue
Block a user