- Helm install pod in pending state:
When you execute kubectl get events you will see the following error:
no persistent volumes available for this claim and no storage class is set or
PersistentVolumeClaim is not bound
This error usually comes in kubernetes set with kubeadm.
You will need to create persistentvolume with the following yaml file:
[code]
kind: PersistentVolume
apiVersion: v1
metadata:
name: redis-data
labels:
type: local
spec:
storageClassName: generic
capacity:
storage: 8Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/bitnami/redis"
[/code]
create pv with kubectl create -f pv-create.ymlThen you will need to create pvc with following yaml
[code]
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: redis-data
spec:
storageClassName: generic
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
[/code]
You will need to create pvc with kubectl create -f pv-claim.ymlCheck the pvc status with kubectl get pvc with status should be bound.
First install and configure vault using this tutorial: https://apassionatechie.wordpress.com/2017/03/05/hashicorp-vault/ Use the latest version of vault. Then install salt using the steps given here: https://docs.saltstack.com/en/latest/topics/installation/ If you face any issues then refer these links: https://apassionatechie.wordpress.com/2017/07/31/salt-issues/ https://apassionatechie.wordpress.com/2017/08/03/salt-stack-formulas/ Now let's integrate vault and salt so that we can access vault secrets from inside salt state. First let's add some key values into our vault. vault write secret/ssh/user1 password="abc123" Then you can check it by reading: vault read secret/ssh/user1 To allow salt to access your secrets you must firstly create a policy as follows: salt-policy.hcl [code] path "secret/*" { capabilities = ["read", "list"] } path "auth/*" { capabilities = ["read", "list","sudo",...
[…] Helm issues October 17, 2017 […]
ReplyDeleteReblogged this on Linux the great.
ReplyDeleteAmazing issues here. I'm very happy to see your post. Thanks so much and I am looking ahead to touch you. Will you kindly drop me a e-mail?
ReplyDelete