feat: ElasticSearch | set up https for service

This commit is contained in:
2024-10-12 13:35:14 +05:00
parent b313b746df
commit 6d8afdefb6

View File

@@ -1,4 +1,23 @@
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: elasticsearch-cert
namespace: elastic-system
spec:
secretName: elasticsearch-cert
privateKey:
algorithm: ECDSA
size: 384
usages:
- server auth
dnsNames:
- elastic.dogar.dev
issuerRef:
name: cloudflare-issuer
kind: ClusterIssuer
group: cert-manager.io
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
@@ -14,9 +33,8 @@ spec:
annotations:
external-dns.alpha.kubernetes.io/hostname: elastic.dogar.dev
tls:
selfSignedCertificate:
subjectAltNames:
- dns: elastic.dogar.dev
certificate:
secretName: elasticsearch-cert
nodeSets:
- name: master
count: 1