Posts

Kubernetes cluster on single board computers

I want to start off by saying i'm new to kubernetes so this is what I've done to get it working in my cluster. A lot of commands in the post I got from this post  by Hypriot. Setting up the Master Node My master node is a Rock64  by Pine64 a nice little computer. I installed there modified version of ubuntu called "Ubuntu 18.04 Bionic minimal 64bit Image [microSD / eMMC Boot]" as the os im using an microSD card right now. Install docker First lets install docker. Below is my favorite command to get it installed on a Linux machine. $ curl -L http://get.docker.com | sudo sh Configure docker Now lets configure docker to it uses the cgroup driver systemd. These commands came from kubernetes cri installation documentation. Modify the docker daemon.json file to have the following lines. Its usually located at /etc/docker/daemon.json { " exec-opts ": [ "native.cgroupdriver=systemd" ] , " log-driver ": "json-file&

Configuring your systems and create a powershell script that can just be executed accross windows

So I needed a cross platform scripting language. I could have chosen bash and just used WSL but I prefer powershell over any other scripting language. Thank fully, Microsoft introduced Powershell core that's cross platform. The first thing I had to do was install powershell core on all my boxes. I follows the instructions from powershell core's github page. To install it on Windows, Mac OSx, and Raspbian. After i got these install the powershell scripts would just run on windows. But on OSx or Linux you need to add pwsh before calling the script. But that can be easier. First you need to put a symbolic link to pwsh in a common place on your Unix based systems. I chose /usr/local/bin/pwsh because on OSx I was unable to place it at /bin/pwsh. Now edit your powershell script and add #!/usr/local/bin/pwsh as the very first line in your script. We have to make it so the script is executable run chmod +x <script>.ps1 . You can now execute your script by calling it like

How to authenticate docker to Azure Container registry

Make sure your account has been added with at least read access to the acr (Azure Container Registry). Also if your account is a guest in the Azure Active Directory. Make sure you have completed your registration you'll get an email. A common error if you have not completed registration is Unable to find Subscription. Download the Azure cli and install it. You can download it for windows at  https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest . You can find install instructions for other OS's here  https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest Now login to azure with the account that was setup in step 1. Use the command below and follow the screen instructions. az login  If you have multiple subscriptions you'll need to select the subscription the acr is in.  az account set --subscription <subscription guid> This step is optional but is usually needed. Install 'ACR Docker Cre

SXA and how I dealt with css/sass serialization conflicts

The Problem we were running into: We have several front end developers working on an SXA site I'm working on. But we started encountering conflicts all over the place with the scss files that are uploaded into the cms and serialized back down to yaml files. It was taking us 15 minutes at least to merge in changes between branches. We would have to resolve the conflicts and then just take source or destination on the yaml files representing the scss and css files. Then we would have to start gulp and go and save every file under the Theme to make sure they got uploaded into Sitecore so our serialized files were correct. Attempt 1: The first thing I did to try and fix the problem was to add a task to gulp to upload all the scss and css files into Sitecore. This sort of worked but was causing even more conflicts because it ended up changing the BlobId on the item even if the file was the same that was being uploaded. So we limped on with this for a little because it was stil