Compare commits
1 Commits
6d4d0172e0
...
118acde09d
Author | SHA1 | Date |
---|---|---|
|
118acde09d |
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: "etcd.database.coreos.com/v1beta2"
|
||||||
|
kind: "EtcdBackup"
|
||||||
|
metadata:
|
||||||
|
name: vault-backup
|
||||||
|
namespace: "vault-operator"
|
||||||
|
spec:
|
||||||
|
etcdEndpoints: ["https://vault-etcd-client:2379"]
|
||||||
|
storageType: S3
|
||||||
|
clientTLSSecret: vault-etcd-client-tls
|
||||||
|
s3:
|
||||||
|
path: vault/backup-manual
|
||||||
|
awsSecret: aws
|
||||||
|
endpoint: http://minio.minio.svc:9000
|
|
@ -9,7 +9,8 @@ spec:
|
||||||
etcdCluster:
|
etcdCluster:
|
||||||
# The namespace is the same as this EtcdRestore CR
|
# The namespace is the same as this EtcdRestore CR
|
||||||
name: vault-etcd
|
name: vault-etcd
|
||||||
backupStorageType: ABS
|
backupStorageType: S3
|
||||||
abs:
|
s3:
|
||||||
path: vault/backup-<specify the backup name>
|
path: vault/backup-<name>
|
||||||
absSecret: abs
|
awsSecret: aws
|
||||||
|
endpoint: http://minio.minio.svc:9000
|
|
@ -1,10 +0,0 @@
|
||||||
# Secret to access microsoft azure blob store
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: abs
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
storage-account: {{ .Values.abs.account }}
|
|
||||||
storage-key: {{ .Values.abs.accessKey }}
|
|
||||||
cloud: {{ .Values.abs.cloud }}
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Secret to access s3 compatible store
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: aws
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
config: {{ printf "[default]\nregion = %s" .Values.s3.region | b64enc | quote }}
|
||||||
|
credentials: {{ printf "[default]\naws_access_key_id = %s\naws_secret_access_key = %s\n" .Values.s3.accessKeyId .Values.s3.secretAccessKey | b64enc | quote }}
|
||||||
|
|
|
@ -11,8 +11,9 @@ data:
|
||||||
generateName: vault-backup-
|
generateName: vault-backup-
|
||||||
spec:
|
spec:
|
||||||
etcdEndpoints: ["https://vault-etcd-client:2379"]
|
etcdEndpoints: ["https://vault-etcd-client:2379"]
|
||||||
storageType: ABS
|
storageType: S3
|
||||||
clientTLSSecret: vault-etcd-client-tls
|
clientTLSSecret: vault-etcd-client-tls
|
||||||
abs:
|
s3:
|
||||||
path: vault/backup.<NOW>
|
path: vault/backup.<NOW>
|
||||||
absSecret: abs
|
awsSecret: aws
|
||||||
|
endpoint: {{ .Values.s3.endpoint }}
|
|
@ -2,14 +2,16 @@
|
||||||
# This is a YAML-formatted file.
|
# This is a YAML-formatted file.
|
||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
# abs gives details of the credentials to reach the azure backup storage
|
# s3 configures s3 backup storage
|
||||||
abs:
|
s3:
|
||||||
# account is the name of the Storage account
|
# accessKey for the s3 storage account
|
||||||
account: fdlkops
|
accessKeyId: AKIAIOSFODNN7EXAMPLE
|
||||||
# access key for the Storage account
|
# secretAccessKey for the s3 storage account
|
||||||
accessKey: xxxx
|
secretAccessKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
|
||||||
# default cloud
|
# region
|
||||||
cloud: AzurePublicCloud
|
region: us-east-1
|
||||||
|
# endpoint for the s3 storage
|
||||||
|
endpoint: http://minio.minio.svc:9000
|
||||||
|
|
||||||
# backupjob describes the backup cronjob
|
# backupjob describes the backup cronjob
|
||||||
backupJob:
|
backupJob:
|
||||||
|
@ -40,10 +42,10 @@ etcd-operator:
|
||||||
tag: v0.9.2
|
tag: v0.9.2
|
||||||
backupOperator:
|
backupOperator:
|
||||||
image:
|
image:
|
||||||
tag: v0.9.2
|
tag: v0.8.3
|
||||||
restoreOperator:
|
restoreOperator:
|
||||||
image:
|
image:
|
||||||
tag: v0.9.2
|
tag: v0.8.3
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
name: "vault-ui"
|
name: "vault-ui"
|
||||||
|
|
Loading…
Reference in New Issue