Stackstorm HA set up using kubernetes

docker

(uday) #1

I have used st2-docker/runtime/kubernetes-1ppc at master · StackStorm/st2-docker · GitHub to get code and ran into below issues:

o/p:

$ kubectl get pods
NAME READY STATUS RESTARTS AGE
init-st2-default-files-4m766 0/1 ContainerCreating 0 7h
init-st2-register-content-lgvcx 0/1 ContainerCreating 0 7h
mistral-api-66994954c5-d8hs7 1/1 Running 0 7h
mistral-server-867f697847-2z2l6 1/1 Running 1 7h
mongo-665675994d-ll6ng 1/1 Running 0 8h
postgres-54df85bd48-l2jvc 1/1 Running 0 8h
rabbitmq-549b94fdb5-j4r2m 1/1 Running 0 8h
redis-7555d94795-nb946 1/1 Running 0 8h
st2actionrunner-c658469b6-69ch2 1/1 Running 0 7h
st2api-76b557b954-brhkd 1/1 Running 0 7h
st2auth-7bfcc99f9c-lctdk 1/1 Running 0 7h
st2garbagecollector-c9f874b4b-86d28 1/1 Running 0 7h
st2notifier-57fc48746b-f9q54 1/1 Running 0 7h
st2resultstracker-6cf7fd746-l7xj2 1/1 Running 0 7h
st2rulesengine-74f58b4859-ntnzd 1/1 Running 0 7h
st2sensorcontainer-7746cc5655-xtmfj 1/1 Running 0 7h
st2stream-66755bb84f-b9qpj 1/1 Running 0 7h
st2web-6b9f4fc44d-tn8mf 2/2 Running 0 7h
st2workflowengine-58c5b75d49-ghfvj 0/1 CrashLoopBackOff 90 7h

1.all other pods of st2 running only workflow is not running

st2workflow engine is not coming into running mode
st2workflowengine-58c5b75d49-ghfvj 0/1 CrashLoopBackOff 88 7h 10.200.95.13 86bdeace-2ddd-4a2b-94e1-95b9884bfd48

$ kubectl exec -it st2workflowengine-58c5b75d49-ghfvj bash
Unable to use a TTY - input is not a terminal or the right kind of file
error: unable to upgrade connection: container not found (“st2workflowengine”)

kubectl logs st2workflowengine-58c5b75d49-ghfvj
Adding password for user admin
/st2-docker/bin/entrypoint.sh: ignoring /st2-docker/entrypoint.d/*

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: st2-packs
spec:
accessModes:

  • ReadWriteOnce
    resources:
    requests:
    storage: 100Mi

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: st2-virtualenvs
spec:
accessModes:

  • ReadWriteOnce
    resources:
    requests:
    storage: 100Mi

pvc should be ReadWriteMany to work to start init containers or i ahve changed it to ReadWriteOnce , but init containers are failing due to below error
AttachVolume.Attach failed for volume “pvc-9f6aa63f-a64b-11e8-91fb-0050568b5ef8” : Failed to add disk ‘scsi1:0’

can you help with suggestions to resolve this 2 issues