4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 apiVersion: apps/v1beta2
21 namespace: kube-system
23 {{ caas.kubernetes_component_label }}: fluentd-logging
25 kubernetes.io/cluster-service: "true"
29 {{ caas.kubernetes_component_label }}: fluentd-logging
33 danm.k8s.io/interfaces: |
40 {{ caas.kubernetes_component_label }}: fluentd-logging
42 kubernetes.io/cluster-service: "true"
44 dnsPolicy: ClusterFirst
47 image: {{ container_image_names | select('search', '/fluentd') | list | last }}
49 - "/bin/entrypoint.sh"
52 - "/fluentd/etc/fluent.conf"
60 - name: KUBERNETES_SERVICE_HOST
61 value: "{{ caas.apiserver_service_name }}"
62 - name: KUBERNETES_SERVICE_PORT
63 value: "{{ caas.apiserver_svc_port }}"
64 - name: FLUENT_ELASTICSEARCH_HOST
65 value: "{{ caas.elasticsearch_url }}"
66 - name: FLUENT_ELASTICSEARCH_PORT
67 value: "{{ caas.elasticsearch_port }}"
68 - name: FLUENT_ELASTICSEARCH_SCHEME
70 - name: FLUENT_ELASTICSEARCH_USER
72 - name: FLUENT_ELASTICSEARCH_PASSWORD
74 - name: FLUENT_ELASTICSEARCH_SSL
78 # TODO: change it to a dynamic ConfigMap, in case something needs to be run-time configurable
84 - name: varlibdockercontainers
85 mountPath: /var/lib/docker/containers
86 - name: fluentd-secrets
87 mountPath: /etc/fluentd/ssl
89 - name: fluentd-config
90 mountPath: /etc/fluentd/config.d
91 terminationGracePeriodSeconds: 30
96 - name: varlibdockercontainers
98 path: /var/lib/docker/containers
99 - name: fluentd-secrets
101 path: /etc/fluentd/ssl
102 - name: fluentd-config
105 serviceAccountName: fluentd