summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging_kibana/templates/kibana.j2
diff options
context:
space:
mode:
authorEric Wolinetz <ewolinet@redhat.com>2018-01-05 11:06:43 -0600
committerEric Wolinetz <ewolinet@redhat.com>2018-02-05 13:44:16 -0600
commitd5879135f077e4aaaa09c8e4ebf5d9ef2a063a78 (patch)
tree1e07b2d1dba87ea685899c167ddc2c85c68344ed /roles/openshift_logging_kibana/templates/kibana.j2
parent3e2c7c22a54a3ccf88b49742003a3a4a937683f8 (diff)
downloadopenshift-d5879135f077e4aaaa09c8e4ebf5d9ef2a063a78.tar.gz
openshift-d5879135f077e4aaaa09c8e4ebf5d9ef2a063a78.tar.bz2
openshift-d5879135f077e4aaaa09c8e4ebf5d9ef2a063a78.tar.xz
openshift-d5879135f077e4aaaa09c8e4ebf5d9ef2a063a78.zip
Adding support for ES 5.x tech preview opt in
Diffstat (limited to 'roles/openshift_logging_kibana/templates/kibana.j2')
-rw-r--r--roles/openshift_logging_kibana/templates/kibana.j2176
1 files changed, 0 insertions, 176 deletions
diff --git a/roles/openshift_logging_kibana/templates/kibana.j2 b/roles/openshift_logging_kibana/templates/kibana.j2
deleted file mode 100644
index ed05b8458..000000000
--- a/roles/openshift_logging_kibana/templates/kibana.j2
+++ /dev/null
@@ -1,176 +0,0 @@
-apiVersion: "v1"
-kind: "DeploymentConfig"
-metadata:
- name: "{{ deploy_name }}"
- labels:
- provider: openshift
- component: "{{ component }}"
- logging-infra: "{{ logging_component }}"
-spec:
- replicas: {{ kibana_replicas | default(1) }}
- selector:
- provider: openshift
- component: "{{ component }}"
- logging-infra: "{{ logging_component }}"
- strategy:
- rollingParams:
- intervalSeconds: 1
- timeoutSeconds: 600
- updatePeriodSeconds: 1
- type: Rolling
- template:
- metadata:
- name: "{{ deploy_name }}"
- labels:
- logging-infra: "{{ logging_component }}"
- provider: openshift
- component: "{{ component }}"
- spec:
- serviceAccountName: aggregated-logging-kibana
-{% if kibana_node_selector is iterable and kibana_node_selector | length > 0 %}
- nodeSelector:
-{% for key, value in kibana_node_selector.items() %}
- {{ key }}: "{{ value }}"
-{% endfor %}
-{% endif %}
- containers:
- -
- name: "kibana"
- image: {{ image }}
- imagePullPolicy: IfNotPresent
-{% if (kibana_memory_limit is defined and kibana_memory_limit is not none and kibana_memory_limit != "") or (kibana_cpu_limit is defined and kibana_cpu_limit is not none and kibana_cpu_limit != "") or (kibana_cpu_request is defined and kibana_cpu_request is not none and kibana_cpu_request != "") %}
- resources:
-{% if (kibana_memory_limit is defined and kibana_memory_limit is not none and kibana_memory_limit != "") or (kibana_cpu_limit is defined and kibana_cpu_limit is not none and kibana_cpu_limit != "") %}
- limits:
-{% if kibana_cpu_limit is not none and kibana_cpu_limit != "" %}
- cpu: "{{ kibana_cpu_limit }}"
-{% endif %}
-{% if kibana_memory_limit is not none and kibana_memory_limit != "" %}
- memory: "{{ kibana_memory_limit }}"
-{% endif %}
-{% endif %}
-{% if (kibana_memory_limit is defined and kibana_memory_limit is not none and kibana_memory_limit != "") or (kibana_cpu_request is defined and kibana_cpu_request is not none and kibana_cpu_request != "") %}
- requests:
-{% if kibana_cpu_request is not none and kibana_cpu_request != "" %}
- cpu: "{{ kibana_cpu_request }}"
-{% endif %}
-{% if kibana_memory_limit is not none and kibana_memory_limit != "" %}
- memory: "{{ kibana_memory_limit }}"
-{% endif %}
-{% endif %}
-{% endif %}
- env:
- - name: "ES_HOST"
- value: "{{ es_host }}"
- - name: "ES_PORT"
- value: "{{ es_port }}"
- -
- name: "KIBANA_MEMORY_LIMIT"
- valueFrom:
- resourceFieldRef:
- containerName: kibana
- resource: limits.memory
-{% for key, value in kibana_env_vars.items() %}
- - name: "{{ key }}"
- value: "{{ value }}"
-{% endfor %}
- volumeMounts:
- - name: kibana
- mountPath: /etc/kibana/keys
- readOnly: true
- readinessProbe:
- exec:
- command:
- - "/usr/share/kibana/probe/readiness.sh"
- initialDelaySeconds: 5
- timeoutSeconds: 4
- periodSeconds: 5
- -
- name: "kibana-proxy"
- image: {{ proxy_image }}
- imagePullPolicy: IfNotPresent
-{% if (kibana_proxy_memory_limit is defined and kibana_proxy_memory_limit is not none and kibana_proxy_memory_limit != "") or (kibana_proxy_cpu_limit is defined and kibana_proxy_cpu_limit is not none and kibana_proxy_cpu_limit != "") or (kibana_proxy_cpu_request is defined and kibana_proxy_cpu_request is not none and kibana_proxy_cpu_request != "") %}
- resources:
-{% if (kibana_proxy_memory_limit is defined and kibana_proxy_memory_limit is not none and kibana_proxy_memory_limit != "") or (kibana_proxy_cpu_limit is defined and kibana_proxy_cpu_limit is not none and kibana_proxy_cpu_limit != "") %}
- limits:
-{% if kibana_proxy_cpu_limit is not none and kibana_proxy_cpu_limit != "" %}
- cpu: "{{ kibana_proxy_cpu_limit }}"
-{% endif %}
-{% if kibana_proxy_memory_limit is not none and kibana_proxy_memory_limit != "" %}
- memory: "{{ kibana_proxy_memory_limit }}"
-{% endif %}
-{% endif %}
-{% if (kibana_proxy_memory_limit is defined and kibana_proxy_memory_limit is not none and kibana_proxy_memory_limit != "") or (kibana_proxy_cpu_request is defined and kibana_proxy_cpu_request is not none and kibana_proxy_cpu_request != "") %}
- requests:
-{% if kibana_proxy_cpu_request is not none and kibana_proxy_cpu_request != "" %}
- cpu: "{{ kibana_proxy_cpu_request }}"
-{% endif %}
-{% if kibana_proxy_memory_limit is not none and kibana_proxy_memory_limit != "" %}
- memory: "{{ kibana_proxy_memory_limit }}"
-{% endif %}
-{% endif %}
-{% endif %}
- ports:
- -
- name: "oaproxy"
- containerPort: 3000
- env:
- -
- name: "OAP_BACKEND_URL"
- value: "http://localhost:5601"
- -
- name: "OAP_AUTH_MODE"
- value: "oauth2"
- -
- name: "OAP_TRANSFORM"
- value: "user_header,token_header"
- -
- name: "OAP_OAUTH_ID"
- value: kibana-proxy
- -
- name: "OAP_MASTER_URL"
- value: {{ openshift_logging_kibana_master_url }}
- -
- name: "OAP_PUBLIC_MASTER_URL"
- value: {{ openshift_logging_kibana_master_public_url }}
- -
- name: "OAP_LOGOUT_REDIRECT"
- value: {{ openshift_logging_kibana_master_public_url }}/console/logout
- -
- name: "OAP_MASTER_CA_FILE"
- value: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- -
- name: "OAP_DEBUG"
- value: "{{ openshift_logging_kibana_proxy_debug }}"
- -
- name: "OAP_OAUTH_SECRET_FILE"
- value: "/secret/oauth-secret"
- -
- name: "OAP_SERVER_CERT_FILE"
- value: "/secret/server-cert"
- -
- name: "OAP_SERVER_KEY_FILE"
- value: "/secret/server-key"
- -
- name: "OAP_SERVER_TLS_FILE"
- value: "/secret/server-tls.json"
- -
- name: "OAP_SESSION_SECRET_FILE"
- value: "/secret/session-secret"
- -
- name: "OCP_AUTH_PROXY_MEMORY_LIMIT"
- valueFrom:
- resourceFieldRef:
- containerName: kibana-proxy
- resource: limits.memory
- volumeMounts:
- - name: kibana-proxy
- mountPath: /secret
- readOnly: true
- volumes:
- - name: kibana
- secret:
- secretName: logging-kibana
- - name: kibana-proxy
- secret:
- secretName: logging-kibana-proxy