Skip to content

Commit d6c6064

Browse files
authored
Add the CA_TRUSTED env var as an empty string to K8s standalone (#10635)
This commit adds CA_TRUSTED as an empty string env var in the K8s standalone manifest, without this env var set, the Elastic Agent fails to parse the configuration with: `rendering output "default" failed: no matching vars: ${env.CA_TRUSTED}`
1 parent 8646ca1 commit d6c6064

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed

deploy/kubernetes/elastic-agent-kustomize/default/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ spec:
6363
# The Elasticsearch host to communicate with
6464
- name: ES_HOST
6565
value: ""
66+
# The fingerprint of a root CA certificate used to sign
67+
# Elasticsearch's TLS certificate
68+
- name: CA_TRUSTED
69+
value: ""
6670
- name: NODE_NAME
6771
valueFrom:
6872
fieldRef:

deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/base/elastic-agent-standalone-daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ spec:
6363
# The Elasticsearch host to communicate with
6464
- name: ES_HOST
6565
value: ""
66+
# The fingerprint of a root CA certificate used to sign
67+
# Elasticsearch's TLS certificate
68+
- name: CA_TRUSTED
69+
value: ""
6670
- name: NODE_NAME
6771
valueFrom:
6872
fieldRef:

deploy/kubernetes/elastic-agent-kustomize/ksm-autosharding/elastic-agent-standalone/extra/elastic-agent-standalone-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ spec:
6363
# The Elasticsearch host to communicate with
6464
- name: ES_HOST
6565
value: ""
66+
# The fingerprint of a root CA certificate used to sign
67+
# Elasticsearch's TLS certificate
68+
- name: CA_TRUSTED
69+
value: ""
6670
- name: NODE_NAME
6771
valueFrom:
6872
fieldRef:

deploy/kubernetes/elastic-agent-standalone-kubernetes.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,10 @@ spec:
739739
# The Elasticsearch host to communicate with
740740
- name: ES_HOST
741741
value: ""
742+
# The fingerprint of a root CA certificate used to sign
743+
# Elasticsearch's TLS certificate
744+
- name: CA_TRUSTED
745+
value: ""
742746
- name: NODE_NAME
743747
valueFrom:
744748
fieldRef:

deploy/kubernetes/elastic-agent-standalone/elastic-agent-standalone-daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ spec:
6363
# The Elasticsearch host to communicate with
6464
- name: ES_HOST
6565
value: ""
66+
# The fingerprint of a root CA certificate used to sign
67+
# Elasticsearch's TLS certificate
68+
- name: CA_TRUSTED
69+
value: ""
6670
- name: NODE_NAME
6771
valueFrom:
6872
fieldRef:

docs/manifests/elastic-agent-standalone-gke-autopilot.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ spec:
371371
value: "changeme"
372372
- name: ES_HOST
373373
value: "https://<url>.us-central1.gcp.cloud.es.io:443"
374+
# The fingerprint of a root CA certificate used to sign
375+
# Elasticsearch's TLS certificate
376+
- name: CA_TRUSTED
377+
value: ""
374378
- name: NODE_NAME
375379
valueFrom:
376380
fieldRef:

testing/integration/k8s/testdata/elastic-agent-kustomize.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ spec:
705705
value: elastic
706706
- name: ES_PASSWORD
707707
value: changeme
708+
- name: CA_TRUSTED
709+
value: ""
708710
- name: NODE_NAME
709711
valueFrom:
710712
fieldRef:

0 commit comments

Comments
 (0)