A few notes about devops and automation

Moonstreet notes

last update:

Next thing is to install some nice applications on our cluster. Why not use something that’s ready to use? Enter Helm. But I’m old fashioned, I still did not take the plunge and use Helm v3. That’s for a later blogpost. So let’s enable Helm 2.14 on our MicroK8s cluster. First step is to enable Helm microk8s.enable dashboard Let’s initialize Helm in our cluster. ~ (⎈ microk8s:default) ⍉ ▶ helm init $HELM_HOME has been configured at /home/jacqueline/.

Let’s install MicroK8s, the easiest way to install Kubernetes on your computer. After that, let’s configure our system to use kubectl instead of microk8s.kubectl. Prerequisites Your Linux distribution needs to support Snaps. https://snapcraft.io/docs/installing-snapd Install it Just head over to: https://microk8s.io/docs/ or go ahead and follow my lead: sudo snap install microk8s --classic Join the group sudo usermod -a -G microk8s $USER Add some extras microk8s.enable dns dashboard Add the config to your existing config As root:

Getting started with React. Need to know modern JavaScript Disclaimer: I just want to be able to build simple web apps. I do not want to be a professional web dev by no means. Just want to be able to create a little bit of frontend to some api’s. So let’s get going! Declaring variables Using const: alert(name1) const name = 'Jacqueline' // name = "Marie" will render an error: Assignment to a constant variable alert(name) Using var:

Basic Go

When learning Golang and coming from other (scripting) languages, that asterisk and ampersant may strike as a bit odd. This is a beginner Golang post! Let’s start with a basic Golang program outline and in the main func, let’s create a variable named a and assign it the value Three-toed sloth. package main import ( "fmt" ) func main() { a := "Three-toed sloth" fmt.Println(a) } Notice the : before the = and that no type was specified.

Terraform This blogseries is about my adventures in AKS and Terraform. This first article is about Terraform. This assumes you have an Azure account. Prepare Create a service principal with contributor permissions on Azure Subscription level. We can fine tune the permissions later. AZ_SUB="your subscription id" AZ_SECRET="S3cr3tPasw0rd" NAME="terraform-partner-sub" az login az account set --subscription $AZ_SUB az ad sp create-for-rbac --name $NAME-installation-account --password $AZ_SECRET --years 2 Now this account has contributor permissions on the subscription level.

Go Webserver

The last Golang post was a little bit lame so let’s do something more interesting now. Let’s create a webserver. To create a simple webserver, we need: a function that can serve a page in browser (using http obviously) it should listen at a port it should respond to (handle) incoming requests it should be able to write content to the page First create a new project structure:

This is yet another getting started note. This time I am trying to code in Golang. Why, would you ask? Obviously because of its mascotte: Installing Golang Download Golang here https://golang.org/dl/. I am on Ubuntu, so next step is to simply unpack the executable to /usr/local. sudo tar -C /usr/local -xzf go1.11.5.linux-amd64.tar.gz Then add Go to your path in your profile (in my case it would be in ~/.

Prometheus delivers real-time monitoring, alerting and time-series database capabilities including powerful queries and visualizations. Written in Go, Prometheus is one of the fastest-growing projects on GitHub according to the CNCF project and is also mentioned in the Kubernetes docs. So what does Prometheus do? Well, it collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.

Windows Defender is tegenwoordig een prima anti-virus programma, mits real-time protection werkt. Check of real-time protection werkt en niet wordt geblocked door een firewall via onderstaand commando: C:\Program Files\Windows Defender>mpcmdrun -validatemapsconnection p.s. werkt alleen in een command prompt met admin privileges.