kubectl create -f ha-mongo-volume.yaml,elasticsearch-deployment.yaml,elasticsearch-service.yaml,graylog-service.yaml,graylog-deployment.yaml,ha-mongo-headless-service.yaml,ha-mongo-statefulset.yaml
kubectl delete -f ha-mongo-volume.yaml,elasticsearch-deployment.yaml,elasticsearch-service.yaml,graylog-service.yaml,graylog-deployment.yaml,ha-mongo-headless-service.yaml,ha-mongo-statefulset.yaml
Cleanup:
kubectl delete pvc mongo-persistent-storage-mongo-0 mongo-persistent-storage-mongo-1 mongo-persistent-storage-mongo-2 -n graylog
After Creating Mongo Cluster
Connect to cluster and run rs.initiate()
kubectl create -f ha-mongo-volume.yaml,ha-mongo-claim.yaml,elasticsearch-deployment.yaml,elasticsearch-service.yaml,graylog-service.yaml,graylog-deployment.yaml,mongo-deployment.yaml,mongo-service.yaml
kubectl get svc graylog -n graylog
Copy the aws loadbalancer created:
(ex: ac19231203981012938012312319203-129380129830.us-west-2.elb.amazonaws.com):
Edit the deployment of the graylog service and paste into WEB_ENDPOINT_URI
kubectl edit deployment graylog -n graylog
name: GRAYLOG_WEB_ENDPOINT_URI
value: http://ac19231203981012938012312319203-129380129830.us-west-2.elb.amazonaws.com/api
kubectl port-forward graylog-3226681439-97w36 9000:9000