blob: 1bf9b9de2ccec181a5bcba2d53f39958c0972866 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
apiVersion: "v1"
kind: "DeploymentConfig"
metadata:
name: "{{deploy_name}}"
labels:
provider: openshift
component: "{{component}}"
logging-infra: "{{logging_component}}"
spec:
replicas: {{replicas|default(1)}}
selector:
provider: openshift
component: "{{component}}"
logging-infra: "{{logging_component}}"
strategy:
rollingParams:
intervalSeconds: 1
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Recreate
template:
metadata:
name: "{{deploy_name}}"
labels:
logging-infra: "{{logging_component}}"
provider: openshift
component: "{{component}}"
spec:
terminationGracePeriod: 600
serviceAccountName: aggregated-logging-curator
{% if curator_node_selector is iterable and curator_node_selector | length > 0 %}
nodeSelector:
{% for key, value in curator_node_selector.iteritems() %}
{{key}}: "{{value}}"
{% endfor %}
{% endif %}
containers:
-
name: "curator"
image: {{image}}
imagePullPolicy: Always
resources:
limits:
cpu: "{{curator_cpu_limit}}"
{% if curator_memory_limit is defined and curator_memory_limit is not none and curator_memory_limit != "" %}
memory: "{{curator_memory_limit}}"
{% endif %}
env:
-
name: "K8S_HOST_URL"
value: "{{openshift_logging_curator_master_url}}"
-
name: "ES_HOST"
value: "{{es_host}}"
-
name: "ES_PORT"
value: "{{es_port}}"
-
name: "ES_CLIENT_CERT"
value: "/etc/curator/keys/cert"
-
name: "ES_CLIENT_KEY"
value: "/etc/curator/keys/key"
-
name: "ES_CA"
value: "/etc/curator/keys/ca"
-
name: "CURATOR_DEFAULT_DAYS"
value: "{{openshift_logging_curator_default_days}}"
-
name: "CURATOR_RUN_HOUR"
value: "{{openshift_logging_curator_run_hour}}"
-
name: "CURATOR_RUN_MINUTE"
value: "{{openshift_logging_curator_run_minute}}"
-
name: "CURATOR_RUN_TIMEZONE"
value: "{{openshift_logging_curator_run_timezone}}"
-
name: "CURATOR_SCRIPT_LOG_LEVEL"
value: "{{openshift_logging_curator_script_log_level}}"
-
name: "CURATOR_LOG_LEVEL"
value: "{{openshift_logging_curator_log_level}}"
volumeMounts:
- name: certs
mountPath: /etc/curator/keys
readOnly: true
- name: config
mountPath: /etc/curator/settings
readOnly: true
volumes:
- name: certs
secret:
secretName: logging-curator
- name: config
configMap:
name: logging-curator
|