I got it working --set couchdbConfig.ingress.enabled=true \ to --set ingress.enabled=true \
> On Dec 7, 2019, at 4:07 PM, Travis Klein <[email protected]> wrote: > > Hi I was hoping I could get a hand setting up my helm couchdb cluster. Very > hard to find any articles on the net. Even to find a tutor for hire would be > nice. > > What I’m trying to do. Setup couchdb cluster with ingress controller. > Eventually add ssl to controller. Not important yet. I want the ingress > controller for external access to couchdb. I want my api server pods to be > able to talk to the couchdb pods locally. Or is it better to go through > couchdb ingress? Not sure. My api cluster will be making admin requests to > couchdb. > > Articles I’m using as reference > > https://hub.helm.sh/charts/couchdb/couchdb > <https://hub.helm.sh/charts/couchdb/couchdb> > > https://medium.com/faun/deploying-a-couchdb-cluster-on-kubernetes-d4eb50a08b34 > > <https://medium.com/faun/deploying-a-couchdb-cluster-on-kubernetes-d4eb50a08b34> > > > > So far these are my steps to get the default cluster working > > kubectl create secret generic couchv1-couchdb > --from-literal=adminUsername=travis --from-literal=adminPassword=testPass12 > --from-literal=cookieAuthSecret=testPass12secret > > helm install couchv1 \ > couchdb/couchdb \ > --set createAdminSecret=false \ > --set clusterSize=3 \ > --set couchdbConfig.ingress.enabled=true \ > --set couchdbConfig.couchdb.uuid=decafbaddecafbaddecafbaddecafbad > > > kubeCtl get services > > // I do have a ingress controller routing traffic to web/web2/webtwo > // exampleservice is a node express api currently just routed from service > // I’m basically just playing around trying to figure shit out. > > couchv1-couchdb ClusterIP None <none> 5984/TCP > 42m > couchv1-svc-couchdb ClusterIP 10.101.31.56 <none> 5984/TCP > 42m > exampleservice LoadBalancer 10.107.230.210 <pending> > 8081:30002/TCP 3d19h > kubernetes ClusterIP 10.96.0.1 <none> 443/TCP > 4d3h > web NodePort 10.110.22.153 <none> > 8080:31099/TCP 39h > web2 NodePort 10.96.10.233 <none> > 8080:30991/TCP 29h > webtwo NodePort 10.102.69.221 <none> > 8080:31641/TCP 28h > > kubeCtl get pods > > couchv1-couchdb-0 1/1 Running 0 43m > couchv1-couchdb-1 1/1 Running 0 43m > couchv1-couchdb-2 1/1 Running 0 43m > myappdeployment-b7b75949c-crxxm 1/1 Running 2 3d19h > myappdeployment-b7b75949c-wpfsg 1/1 Running 2 3d19h > myappdeployment-b7b75949c-x6tbm 1/1 Running 2 3d19h > web-9bbd7b488-zhjql 1/1 Running 1 39h > web2-74cf4946cc-947cl 1/1 Running 0 29h > webtwo-5d88cd7dc6-wm7wq 1/1 Running 0 28h > > > kubectl exec couchv1-couchdb-0 curl > http://travis:[email protected]:5984/_membership > <http://travis:[email protected]:5984/_membership> > > % Total % Received % Xferd Average Speed Time Time Time > Current > Dload Upload Total Spent Left Speed > 100 454 100 454 0 0 4996 0 > --:--:--{"all_nodes":["couc...@couchv1-couchdb-0.couchv1-couchdb.default.svc.cluster.local > > <mailto:couc...@couchv1-couchdb-0.couchv1-couchdb.default.svc.cluster.local>","couc...@couchv1-couchdb-1.couchv1-couchdb.default.svc.cluster.local > > <mailto:couc...@couchv1-couchdb-1.couchv1-couchdb.default.svc.cluster.local>","couc...@couchv1-couchdb-2.couchv1-couchdb.default.svc.cluster.local > > <mailto:couc...@couchv1-couchdb-2.couchv1-couchdb.default.svc.cluster.local>"],"cluster_nodes":["couc...@couchv1-couchdb-0.couchv1-couchdb.default.svc.cluster.local > > <mailto:couc...@couchv1-couchdb-0.couchv1-couchdb.default.svc.cluster.local>","couc...@couchv1-couchdb-1.couchv1-couchdb.default.svc.cluster.local > > <mailto:couc...@couchv1-couchdb-1.couchv1-couchdb.default.svc.cluster.local>","couc...@couchv1-couchdb-2.couchv1-couchdb.default.svc.cluster.local > > <mailto:couc...@couchv1-couchdb-2.couchv1-couchdb.default.svc.cluster.local>"]} > --:--:-- --:--:-- 5044 > > I would love any help or comments > > Thanks for your time, > Travis >
