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 apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch kind: Elasticsearch
metadata: metadata:
@@ -14,9 +33,8 @@ spec:
annotations: annotations:
external-dns.alpha.kubernetes.io/hostname: elastic.dogar.dev external-dns.alpha.kubernetes.io/hostname: elastic.dogar.dev
tls: tls:
selfSignedCertificate: certificate:
subjectAltNames: secretName: elasticsearch-cert
- dns: elastic.dogar.dev
nodeSets: nodeSets:
- name: master - name: master
count: 1 count: 1