EKS – IAM roles

Similar to assigning an IAM role to a ec2 instance to grant access to the applications running on it to access AWS services, you can assign an IAM role to each individual k8s service. This will allow you to get finer control and only grant the access to aws resources Read more…

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 

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…