Files
feedc0de df3743c9dc
Validate and deploy Elastic Stack / Validate manifests (push) Successful in 13s
Validate and deploy Elastic Stack / Deploy to Kubernetes (push) Successful in 26s
Install elastic to the cluster
2026-08-24 21:40:59 +02:00

109 lines
2.0 KiB
YAML

# Bootstrap once with an administrator identity. CI can update only the
# existing Elastic resources and cannot read Secrets or change RBAC.
apiVersion: v1
kind: ServiceAccount
metadata:
name: elastic-deployer
namespace: elastic
automountServiceAccountToken: false
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: elastic-deployer
namespace: elastic
rules:
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- netflow-ilm-policy
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- services
resourceNames:
- netflow
verbs:
- get
- patch
- update
- apiGroups:
- elasticsearch.k8s.elastic.co
resources:
- elasticsearches
resourceNames:
- elasticsearch
verbs:
- get
- patch
- update
- apiGroups:
- kibana.k8s.elastic.co
resources:
- kibanas
resourceNames:
- kibana
verbs:
- get
- patch
- update
- apiGroups:
- beat.k8s.elastic.co
resources:
- beats
resourceNames:
- netflow
verbs:
- get
- patch
- update
- apiGroups:
- agent.k8s.elastic.co
resources:
- agents
resourceNames:
- traefik-access
verbs:
- get
- patch
- update
- apiGroups:
- networking.k8s.io
resources:
- ingresses
resourceNames:
- kibana
verbs:
- get
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: elastic-deployer
namespace: elastic
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: elastic-deployer
subjects:
- kind: ServiceAccount
name: elastic-deployer
namespace: elastic
---
apiVersion: v1
kind: Secret
metadata:
name: elastic-deployer-token
namespace: elastic
annotations:
kubernetes.io/service-account.name: elastic-deployer
type: kubernetes.io/service-account-token