Skip to main content

Udacity Front-end Developer Challenge Daily Sprint Updates

As per the Next Generation Tech Booster Challenge Program, we are asked to submit a daily progress report on slack. We just need to answer these three questions in the post: • What did I work on today? • What I will work on tomorrow? • What issues are blocking my progress? I take this logging opportunity to also report on the progress I am making with my Coursera course “Server-side Development with NodeJS, Express, and MongoDB”; and my Linux Foundation course “LFS258 Kubernetes Fundamentals”.  To help with completing above, here are some links posted by the slack moderators that I try to use to get through my workload: How to Organize your Desk like a Pro Tips on how to achieve consistency Strategies we can employ to stop Procrastination Eliminate Time Wasting Activities by Using the Eisenhower Box Warren Buffett’s “2 List” Strategy The Ivy Lee Method The 15-Minute Routine Anthony Trollope Used to Write 40+ Books The instructor for the course is Daniel and is pure entertainment.  Ther

What Docker Image for GO works on a Raspberry Pi 3 running Kubernetes k3s orchestrator?

I applied and was recently awarded a Cloud-native Application Architecture scholarship by SUSE and Udactity. There were about 12,000 scholars all over the globe who took part in the course made up of 5 lessons in 2 months, with phase 1 ending August 2, 2021.

One of the exercises was to run Docker Desktop on my Windows 10 computer and build a docker image alpine:golang which will run a web application and display the infamous Hello World. I uploaded this docker image to my Docker Hub registry for use in a Kubernetes cluster. We needed to install Oracle VirtualBox, Hashicorp Vagrant, and run Kubernetes k3s cluster https://k3s.io/ to host this docker image. This worked well on my computer but I wanted to try the same exercise on my RPi which had a lot less resources and wanted to see how well it worked there.

I have a Raspberry Pi 3 running Raspian OS with 32GB of disk and 4GB of memory. I connected the RPi via wifi on my local LAN and have opened up an SSH session to it. First I install k3s by running "curl -sfL https://get.k3s.io | sh"


Next, I pick an ARM image with alpine:golang, but this image did not work and the pods continually restarted. I scoured the internet and found this repo below after trying out over 6 different ARM images

    balenalib/raspberry-pi-alpine-golang:latest 

Use the above in your docker file, build it using standard "docker build" command and save the image to your Docker hub registry. From your RPi over an SSH session, run a "kubectl deploy" command to deploy a new golang app using that Docker hub image. I found that the pods stayed up but I didn't get to fully test the "Hello World" golang go-helloworld app via http://192.168.0.1:6112 from my host computer. Trying to run it locally on the RPi via http://127.0.0.1:6112 is extremely slow and I fear it might be resource constrained.

Here is the day-to-day recap of the scholarship challenge documented here https://github.com/chromilo/udacity-suse-scholarship

Comments

Popular posts from this blog

Wall of Graduates from the AI Product Manager Nanodegree

The "Wall of Graduates" is a Google sites page showing a profile list of students who graduated from the Udacity AI Product Manager nanodegree. We were asked two questions to include in our profile and there are those two questions.  What obstacles (big or small!) did you face during Phase 2 & how did you overcome them?    I think the biggest was time constraint. I was also doing my Georgia Tech course in the spring and this fell on the same timeline. The other obstacle is that the course material was not technical but more for product managers. This meant a lot of time was spent networking in slack participating community-driven initiatives. I did learn Artificial Intelligence concepts but it didn't need to last from December 2020-December 2021.  How are you making use of your newfound skills?  I don't use AI at work but it has allowed me to open my eyes to possibilities. We recently implemented MS Azure Cognitive service utilizing text translation. Although not

Udacity Front-end Developer Challenge Daily Sprint Updates

As per the Next Generation Tech Booster Challenge Program, we are asked to submit a daily progress report on slack. We just need to answer these three questions in the post: • What did I work on today? • What I will work on tomorrow? • What issues are blocking my progress? I take this logging opportunity to also report on the progress I am making with my Coursera course “Server-side Development with NodeJS, Express, and MongoDB”; and my Linux Foundation course “LFS258 Kubernetes Fundamentals”.  To help with completing above, here are some links posted by the slack moderators that I try to use to get through my workload: How to Organize your Desk like a Pro Tips on how to achieve consistency Strategies we can employ to stop Procrastination Eliminate Time Wasting Activities by Using the Eisenhower Box Warren Buffett’s “2 List” Strategy The Ivy Lee Method The 15-Minute Routine Anthony Trollope Used to Write 40+ Books The instructor for the course is Daniel and is pure entertainment.  Ther

Fixing ads.txt error in AdSense for your websites hosted on Blogger

We were recently approved to setup Google Adsense for a few websites. I was so ecstatic because I hadn't been able to get this going for a while due to some accounting errors. I assume there was a time duration where that token expires and am now glad to be able use this product. During the setup on our blogger sites, I ran into some technical errors pointed at fixing ads.txt otherwise it may impact ad revenue, i.e. "earnings at risk you need to fix some ads.txt file issues to avoid severe impact to your revenue".  To summarize the steps needed to enable Google Adsense on your site, you would simply need to do the following:  1) Create an ads.txt file in the root of your Blogger site like example.com/ads.txt by going to Settings > Moentization > Enable custom ads.txt slider;  2) Add your publisher ID to the ads.txt file in Blogger using string "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0" where pub-0000000000000000 is your personal publisher