ArgoCD

Install kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml https://argoproj.github.io/argo-cd/getting_started/ Proxy connection to server kubectl port-forward svc/argocd-server -n argocd 8080:443 You can access the argocd server at http://localhost:8080 Until we configure SSL you will get a certificate error in the browser. Click continue and use the default credentials Read more…

RabbitMQ metrics in Elasticsearch

In this example we are using Elastic Cloud managed elasticsearch and will deploy the metricbeat to a k8s cluster. Create Secret apiVersion: v1 data: ELASTICSEARCH_AUTH: [base64_encoded_auth] ELASTICSEARCH_CLOUD_ID: [base64_encoded_cloudid] ELASTICSEARCH_RABBITMQ_PASSWORD: [base64_encoded_password] ELASTICSEARCH_RABBITMQ_USER: [base64_encoded_user] kind: Secret metadata: name: metricbeat type: Opaque Create DNS pointing to RabbitMQ apiVersion: v1 kind: Service metadata: name: Read more…

Kubernetes on a Mac

Enable auto-completion Upgrade bash, install autocompletion and enable them: https://medium.com/merapar/fixing-bash-autocompletion-on-macos-for-kubectl-and-kops-e87f019652e8 List all pod (sorted by node) kubectl get pods -o wide –sort-by=”{.spec.nodeName}” –all-namespaces 

Microk8s – Private Registry

Docker Private Registry To setup Microk8s, see previous post Enable required microk8s add-ons: In order to push images from your development machine to a Microk8s docker private registry, you may want to expose it outside of the host. Note: these instructions can easily be adapted to expose a docker private Read more…

Kubernetes in seconds: MicroK8s

Create a kubernetes cluster all-in-one virtual machine for kubernetes learning/experimentation. Note: There is a little video on https://microk8s.io/ if that is more of your cup of tea. Ingredients Virtual Machine (e.g. AWS EC2 instance)  Ubuntu 18.04 LTS (or any linux distribution with snap support) Create cluster using microk8s Like Magic: You Read more…