chore: ElasticSearch | master and data can be on the same node
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
---
|
# ---
|
||||||
apiVersion: onepassword.com/v1
|
# apiVersion: onepassword.com/v1
|
||||||
kind: OnePasswordItem
|
# kind: OnePasswordItem
|
||||||
metadata:
|
# metadata:
|
||||||
name: kibana-authentik
|
# name: kibana-authentik
|
||||||
namespace: elastic-system
|
# namespace: elastic-system
|
||||||
annotations:
|
# annotations:
|
||||||
operator.1password.io/auto-restart: "true"
|
# operator.1password.io/auto-restart: "true"
|
||||||
spec:
|
# spec:
|
||||||
itemPath: "vaults/Lab/items/kibana-authentik"
|
# itemPath: "vaults/Lab/items/kibana-authentik"
|
||||||
---
|
---
|
||||||
apiVersion: elasticsearch.k8s.elastic.co/v1
|
apiVersion: elasticsearch.k8s.elastic.co/v1
|
||||||
kind: Elasticsearch
|
kind: Elasticsearch
|
||||||
@@ -26,7 +26,7 @@ spec:
|
|||||||
- key: client-secret
|
- key: client-secret
|
||||||
path: "xpack.security.authc.realms.oidc.authentik.rp.client_secret"
|
path: "xpack.security.authc.realms.oidc.authentik.rp.client_secret"
|
||||||
nodeSets:
|
nodeSets:
|
||||||
- name: master
|
- name: node
|
||||||
count: 3
|
count: 3
|
||||||
podTemplate:
|
podTemplate:
|
||||||
spec:
|
spec:
|
||||||
@@ -46,43 +46,7 @@ spec:
|
|||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
storageClassName: longhorn
|
storageClassName: longhorn
|
||||||
config:
|
config:
|
||||||
node.roles: ["master"]
|
node.roles: ["master", "data"]
|
||||||
xpack.security.authc.token.enabled: true
|
|
||||||
xpack.security.authc.realms.oidc.authentik:
|
|
||||||
order: 2
|
|
||||||
rp.client_id: "atlY82FGIBYvUg87cnENzks5ft1AUUtIfQsXSDog"
|
|
||||||
rp.response_type: code
|
|
||||||
rp.redirect_uri: "https://kibana.dogar.dev/api/security/oidc/callback"
|
|
||||||
op.issuer: "https://auth.dogar.dev/application/o/kibana/"
|
|
||||||
op.authorization_endpoint: "https://auth.dogar.dev/application/o/authorize/"
|
|
||||||
op.token_endpoint: "https://auth.dogar.dev/application/o/token/"
|
|
||||||
op.jwkset_path: "https://auth.dogar.dev/application/o/kibana/jwks/"
|
|
||||||
op.userinfo_endpoint: "https://auth.dogar.dev/application/o/userinfo/"
|
|
||||||
op.endsession_endpoint: "https://auth.dogar.dev/application/o/kibana/end-session/"
|
|
||||||
rp.post_logout_redirect_uri: "https://kibana.dogar.dev/security/logged_out"
|
|
||||||
claims.principal: sub
|
|
||||||
claims.groups: groups
|
|
||||||
- name: data
|
|
||||||
count: 3
|
|
||||||
podTemplate:
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: elasticsearch
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 8Gi
|
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: elasticsearch-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
config:
|
|
||||||
node.roles: ["data"]
|
|
||||||
xpack.security.authc.token.enabled: true
|
xpack.security.authc.token.enabled: true
|
||||||
xpack.security.authc.realms.oidc.authentik:
|
xpack.security.authc.realms.oidc.authentik:
|
||||||
order: 2
|
order: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user