feat: ElasticSearch | set up https for service
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user