My cloud server (hetzner cloud) shall get a tcp message and respond. Here is the example in go. On the cloud server, run this go program: We can see, the server responds when sending something with nc or netcat, from the localhost: Besides allowing the port, we need to allow addresses other than localhost:
go get k8s nodes
Simple example to ask for the nodes of a k8s cluster – using the go language. You will find the downloaded modules under ~/go/pkg/mod/k8s.io, for example. Now go run again, it compiles and runs, but… Compare to this example: What’s the TODO ? It is a function name TODO ! In the main function, you […]
my personal argoCD
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes, see https://argoproj.github.io/cd/ You need the cli. On my mac: brew install argocd. You need a k8s cluster and install argoCD. I will use my cluster on 2 cloud nodes, which I had set up with kubespray. Now install argoCD Now, we need to continue […]
gitlab CI/CD pipeline
Can we run it on Mac OS ? The official guide is https://docs.gitlab.com/runner/install/osx.html#manual-installation-official Note: it meaning a runner, opensource, written in go. It does not mean: the gitlab UI. To get gitlab itself running, use the operator pattern and install e.g. into a kind-playground cluster (docker images in Docker-Desktop forming a k8s cluster). We can […]
ELK ingest pipelines
Start here to know what ingest pipelines are: https://hevodata.com/learn/elasticsearch-ingest-pipeline/ or https://www.elastic.co/guide/en/elasticsearch/reference/master/ingest.html Basically, ingest pipelines transform data: Ingest pipelines let you perform common transformations on your data before indexing. For example, you can use pipelines to remove fields, extract values from text, and enrich your data. https://www.elastic.co/guide/en/elasticsearch/reference/master/ingest.html Nodes in the ELK cluster need to have the […]
k8s multicluster
Kubernetes as a technology gives organizations the ability to run containerized applications at scale across different cloud infrastructures and distributions. What it can’t do (yet) is centrally manage a wide expanse of clusters out of the box in a compliant and reliable manner. https://www.cncf.io/blog/2022/06/24/three-steps-to-streamlining-kubernetes-multi-cluster-management/ Where to start ? Here are some helpful links. https://www.kubermatic.com/blog/how-to-manage-multi-cluster-kubernetes-with-operators/ Yes, […]
kubespray cluster
On 2 nodes in the Hetzner cloud, I want to create a cluster trying out kubespray. kubespray is ansible based…Under the hood: kubeadm kubespray does not create VMs, so I try it out on 2 cloud servers (using hetzner provider). See a discussion of the tools kubespray, kubeadm, kops here Modifying the example from https://github.com/kubernetes-sigs/kubespray/blob/master/docs/setting-up-your-first-cluster.md […]
Want to play with Terraform on macOS ? https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli Plugins are called providers and are downloaded to .terraform directory: Running terraform plan reveals, image_id is missing. After updating terraform to 1.4.0 from the website, the docker provider is upgraded to 2.25 Create a plan, save it, apply it We can see docker container, running nginx:
Deploy mongoDB (6.0.4) with a helmchart from bitnami. To understand what mongoDB offers, use https://www.mongodb.com/docs/manual/introduction/ When to use a document database instead of relational databases? A document database is a great choice for content management applications such as blogs and video platforms. With a document database, each entity that the application tracks can be stored […]
k8s registries, nexus/harbor
What registry to choose ? See this collection of links: https://nubenetes.com/registries/#harbor-cloud-native-repository-for-kubernetes Here is a specific comparison of nexus and harbor. Nexus and Harbor are both container image registries used for managing and distributing Docker images. While they share many similarities, they differ in their approach to certain aspects of container image management. Here are the […]