This blog is built using Hugo, a static site generator written in Go. The pattern is simple, code a site with templates and content locally, then build static pages and files to upload to a host of your choice. It makes for an extremely lightweight site, without the complexity of something like Wordpress. It also comes with similar bolt ons to the bigger site engines, which makes it a powerful choice.
[Read More]
Useful Kubectl Commands
Pod Basics # create pod from yaml folder in current dir kubectl apply -f pod.yml # list running pods kubectl get pods # longer form info on pod kubectl describe pods hello-pod # run command against a pod kubectl exec hello-pod ps aux # run terminal in a pod - ctrl+d to exit kubectl exec -it hello-pod sh # delete a pod kubectl delete -f pod.yml Deployment commands # create a deployment kubectl apply -f deploy.
[Read More]
Creating Ec2 Instances Swarm
sudo yum -y update
sudo yum -y install docker
sudo usermod -a -G docker ec2-user
sudo chkconfig iptables off
sudo service docker start
Docker Commands Cheatsheet
These are some of the more basic commands I will use when I’m working with the carpics container.
# search for an image docker search alpine # pull an image from a repo docker image pull ubuntu:latest # view local images docker image ls # build the docker file into an image docker image build -t carpics:latest . # run a container docker container run -it ubuntu:latest /bin/bash docker container run -it microsoft/powershell:nanoserver pwsh.
[Read More]
Container App for car pics
In a life some time ago, before my kids arrived, I loved modified cars. So when I started looking into containers and followed the awesome tutorial at Docker Curriculum I saw an opportunity to rework the Flask app for my own re-use when tinkering with container tutorials and as i worked my way into AWS container functions.
This is the repo if you want to adjust the app and fork/reuse it.
[Read More]
Authenticating with a service principal
It turns out that in Azure at least, not everything works first time. So for those times when you absolutely positively dont beloeve that your service principal is working, here is how to login with that resource.
$azureAplicationId ="Azure AD Application Id"
$azureTenantId= "Your Tenant Id"
$azurePassword = ConvertTo-SecureString "strong password" -AsPlainText -Force
$psCred = New-Object System.Management.Automation.PSCredential($azureAplicationId , $azurePassword)
Add-AzureRmAccount -Credential $psCred -TenantId $azureTenantId -ServicePrincipa
Hello World
Because every blog needs a Hello World page.