-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(vault): switch storage #4402
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quality Gate passedIssues Measures |
--- kubernetes/talos-flux/apps/secops/vault/app Kustomization: flux-system/vault HelmRelease: secops/vault
+++ kubernetes/talos-flux/apps/secops/vault/app Kustomization: flux-system/vault HelmRelease: secops/vault
@@ -50,43 +50,46 @@
storageClass: ceph-block
extraEnvironmentVars:
TZ: Europe/Vienna
extraLabels:
reloader.stakater.com/auto: 'true'
ha:
- config: |
- # api_addr = "http://127.0.0.1:8200"
- # cluster_addr = "https://127.0.0.1:8201"
- disable_mlock = true
- ui = true
- # seal "gcpckms" {
- # disabled = "false"
- # project = "techtales"
- # region = "europe-west3"
- # key_ring = "home-infra"
- # crypto_key = "vault-unseal"
- # }
- listener "tcp" {
- tls_disable = 1
- address = "[::]:8200"
- cluster_address = "[::]:8201"
- telemetry {
- unauthenticated_metrics_access = "true"
+ enabled: true
+ raft:
+ config: |
+ # api_addr = "http://127.0.0.1:8200"
+ # cluster_addr = "https://127.0.0.1:8201"
+ disable_mlock = true
+ ui = true
+ # seal "gcpckms" {
+ # disabled = "false"
+ # project = "techtales"
+ # region = "europe-west3"
+ # key_ring = "home-infra"
+ # crypto_key = "vault-unseal"
+ # }
+ listener "tcp" {
+ tls_disable = 1
+ address = "[::]:8200"
+ cluster_address = "[::]:8201"
+ telemetry {
+ unauthenticated_metrics_access = "true"
+ }
}
- }
- storage "file" {
- path = "/vault/data"
- }
- # storage "raft" {
- # path = "/vault/data"
- # # retry_join {
- # # leader_api_addr = "http://vault-0.vault-internal:8200"
- # # }
- # }
- service_registration "kubernetes" {}
- enabled: true
+ # storage "file" {
+ # path = "/vault/data"
+ # }
+ storage "raft" {
+ path = "/vault/data"
+ # retry_join {
+ # leader_api_addr = "http://vault-0.vault-internal:8200"
+ # }
+ }
+ service_registration "kubernetes" {}
+ enabled: true
+ setNodeId: true
replicas: 1
ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
kubernetes.io/tls-acme: 'true'
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true' |
--- HelmRelease: secops/vault ConfigMap: secops/vault-config
+++ HelmRelease: secops/vault ConfigMap: secops/vault-config
@@ -26,19 +26,19 @@
address = "[::]:8200"
cluster_address = "[::]:8201"
telemetry {
unauthenticated_metrics_access = "true"
}
}
- storage "file" {
+ # storage "file" {
+ # path = "/vault/data"
+ # }
+ storage "raft" {
path = "/vault/data"
+ # retry_join {
+ # leader_api_addr = "http://vault-0.vault-internal:8200"
+ # }
}
- # storage "raft" {
- # path = "/vault/data"
- # # retry_join {
- # # leader_api_addr = "http://vault-0.vault-internal:8200"
- # # }
- # }
service_registration "kubernetes" {}
disable_mlock = true
--- HelmRelease: secops/vault StatefulSet: secops/vault
+++ HelmRelease: secops/vault StatefulSet: secops/vault
@@ -102,23 +102,29 @@
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: VAULT_CLUSTER_ADDR
value: https://$(HOSTNAME).vault-internal:8201
+ - name: VAULT_RAFT_NODE_ID
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
- name: HOME
value: /home/vault
- name: VAULT_LOG_LEVEL
value: info
- name: VAULT_LOG_FORMAT
value: json
- name: TZ
value: Europe/Vienna
volumeMounts:
- name: audit
mountPath: /vault/audit
+ - name: data
+ mountPath: /vault/data
- name: config
mountPath: /vault/config
- name: home
mountPath: /home/vault
ports:
- containerPort: 8200
@@ -144,12 +150,21 @@
command:
- /bin/sh
- -c
- sleep 5 && kill -SIGTERM $(pidof vault)
volumeClaimTemplates:
- metadata:
+ name: data
+ spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 1Gi
+ storageClassName: ceph-block
+ - metadata:
name: audit
spec:
accessModes:
- ReadWriteOnce
resources:
requests: |
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports MegaLinter is graciously provided by OX Security |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.