how to configure TLS in Vault deployment?
I am trying to deploy vault using the below deployment.yaml without TLS certificates but in the pod logs it expects the Secrets.
Can anyone help me create(proper tutorial) and configure TLS for vault in a proper way. I know there are plenty of TLS docs in internet, but i could not understand which one to follow.
Error:
~/github/hashitvault$ oc logs pod/vault-84776dfb85-9kkf9
Error initializing listener of type tcp: 'tls_cert_file' must be set
deployment.yaml:
kind: Deployment
apiVersion: apps/v1
metadata:
labels:
app: vault
name: vault
spec:
replicas: 1
selector:
matchLabels:
app: vault
template:
metadata:
labels:
app: vault
spec:
serviceAccountName: vault-auth
containers:
name: vault
ports:
- containerPort: 8200
name: vaultport
protocol: TCP
args:
- server
- -log-level=debug
env:
- name: SKIP_SETCAP
value: 'true'
- name: SKIP_CHOWN
value: 'true'
- name: VAULT_LOCAL_CONFIG
valueFrom:
configMapKeyRef:
name: vault-config
key: vault-config
volumeMounts:
- name: vault-file-backend
mountPath: /vault/file
readOnly: false
volumes:
- name: vault-file-backend
persistentVolumeClaim:
claimName: vault-file-backend