feat(openbao): add ArgoCD deployment
This commit is contained in:
+178
@@ -0,0 +1,178 @@
|
||||
global:
|
||||
enabled: true
|
||||
namespace: openbao
|
||||
# Enable end-to-end TLS to each OpenBao listener.
|
||||
tlsDisable: false
|
||||
|
||||
injector:
|
||||
enabled: false
|
||||
|
||||
server:
|
||||
enabled: true
|
||||
image:
|
||||
registry: quay.io
|
||||
repository: openbao/openbao
|
||||
# Pin the deploying Helm chart version separately in application.yaml.
|
||||
tag: "2.7.0"
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
gateway:
|
||||
tlsRoute:
|
||||
enabled: false
|
||||
httpRoute:
|
||||
enabled: false
|
||||
route:
|
||||
enabled: false
|
||||
|
||||
ha:
|
||||
enabled: true
|
||||
replicas: 3
|
||||
apiAddr: "https://$(BAO_K8S_POD_NAME).openbao-internal:8200"
|
||||
disruptionBudget:
|
||||
# Permit one voluntary disruption while retaining a two-member Raft quorum.
|
||||
maxUnavailable: 1
|
||||
raft:
|
||||
enabled: true
|
||||
setNodeId: true
|
||||
config: |
|
||||
ui = true
|
||||
disable_mlock = true
|
||||
listener "tcp" {
|
||||
address = "[::]:8200"
|
||||
cluster_address = "[::]:8201"
|
||||
tls_cert_file = "/openbao/userconfig/openbao-tls/tls.crt"
|
||||
tls_key_file = "/openbao/userconfig/openbao-tls/tls.key"
|
||||
tls_client_ca_file = "/openbao/userconfig/openbao-tls/ca.crt"
|
||||
}
|
||||
storage "raft" {
|
||||
path = "/openbao/data"
|
||||
retry_join {
|
||||
leader_api_addr = "https://{{ include "openbao.fullname" . }}-0.{{ include "openbao.fullname" . }}-internal:8200"
|
||||
leader_ca_cert_file = "/openbao/userconfig/openbao-tls/ca.crt"
|
||||
}
|
||||
retry_join {
|
||||
leader_api_addr = "https://{{ include "openbao.fullname" . }}-1.{{ include "openbao.fullname" . }}-internal:8200"
|
||||
leader_ca_cert_file = "/openbao/userconfig/openbao-tls/ca.crt"
|
||||
}
|
||||
retry_join {
|
||||
leader_api_addr = "https://{{ include "openbao.fullname" . }}-2.{{ include "openbao.fullname" . }}-internal:8200"
|
||||
leader_ca_cert_file = "/openbao/userconfig/openbao-tls/ca.crt"
|
||||
}
|
||||
}
|
||||
service_registration "kubernetes" {}
|
||||
# TODO: select and configure a production seal backend; manual unseal is
|
||||
# currently required after every pod restart.
|
||||
# seal "transit" {
|
||||
# address = "https://transit.example.internal:8200"
|
||||
# mount_path = "transit/"
|
||||
# key_name = "openbao-unseal"
|
||||
# tls_ca_cert = "/path/to/transit-ca.crt"
|
||||
# }
|
||||
|
||||
# Each StatefulSet replica receives its own RWO PVC. longhorn is the StorageClass
|
||||
# used by existing stateful workloads in this repository; verify it in-cluster.
|
||||
# Retained PVCs are not backups; configure snapshotAgent scheduled Raft snapshots to S3 before storing real data.
|
||||
dataStorage:
|
||||
enabled: true
|
||||
size: 1Gi # edit this to your desired size later this is just for testing
|
||||
mountPath: /openbao/data
|
||||
storageClass: longhorn
|
||||
accessMode: ReadWriteOnce
|
||||
auditStorage:
|
||||
enabled: false # TODO: enable after defining protected durable audit log handling.
|
||||
size: 10Gi
|
||||
storageClass: longhorn
|
||||
persistentVolumeClaimRetentionPolicy:
|
||||
whenDeleted: Retain
|
||||
whenScaled: Retain
|
||||
|
||||
# Keep OnDelete for Raft; after config or TLS changes, delete pods one at a time,
|
||||
# standbys first and the leader last.
|
||||
updateStrategyType: OnDelete
|
||||
configAnnotation: true
|
||||
|
||||
extraVolumes:
|
||||
- name: openbao-tls
|
||||
type: secret
|
||||
path: /openbao/userconfig
|
||||
|
||||
# Chart startup writes its generated configuration under /tmp.
|
||||
volumes:
|
||||
- name: tmp
|
||||
emptyDir: {}
|
||||
volumeMounts:
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
extraEnvironmentVars:
|
||||
BAO_CACERT: /openbao/userconfig/openbao-tls/ca.crt
|
||||
# BAO_ADDR is set by the chart using global.tlsDisable.
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 500m
|
||||
memory: 1Gi
|
||||
limits:
|
||||
memory: 2Gi
|
||||
|
||||
readinessProbe:
|
||||
enabled: true
|
||||
path: /v1/sys/health?standbyok=true&sealedcode=204&uninitcode=204
|
||||
port: 8200
|
||||
failureThreshold: 2
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 3
|
||||
livenessProbe:
|
||||
enabled: true
|
||||
path: /v1/sys/health?standbyok=true&sealedcode=204&uninitcode=204
|
||||
port: 8200
|
||||
failureThreshold: 3
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 5
|
||||
|
||||
# Three schedulable nodes are required to spread all Raft members.
|
||||
affinity: ""
|
||||
topologySpreadConstraints: |
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: {{ template "openbao.name" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
component: server
|
||||
|
||||
serviceAccount:
|
||||
create: true
|
||||
createSecret: false
|
||||
serviceDiscovery:
|
||||
enabled: true
|
||||
authDelegator:
|
||||
enabled: false
|
||||
statefulSet:
|
||||
# TODO: no reloader is configured in this repository; restart pods after TLS rotation.
|
||||
annotations: {}
|
||||
securityContext:
|
||||
pod:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 100
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
container:
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
# disable_mlock=true avoids requiring IPC_LOCK; drop ALL remains sufficient.
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
|
||||
ui:
|
||||
enabled: true
|
||||
serviceType: ClusterIP
|
||||
Reference in New Issue
Block a user