Monday, March 28, 2022

Install Ubuntu on Raspberry Pi 4

Enable WiFi 

https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant

Install Desktop

sudo apt-get install ubuntu-desktop

Monday, March 21, 2022

Pull Image from OCI Container Registry

 

https://www.oracle.com/webfolder/technetwork/tutorials/obe/oci/oke-and-registry/index.html

** Notes: --docker-password is the auth token rather than user password.

kubectl create secret docker-registry ocirsecret --docker-server=phx.ocir.io --docker-username='ansh81vru1zp/jdoe@acme.com' --docker-password='k]j64r{1sJSSF-;)K8'
--docker-email='jdoe@acme.com'

Thursday, March 3, 2022

HostAliases for Kubernetes

https://stackoverflow.com/questions/56390226/how-to-add-extra-hosts-entries-in-helm-charts 

Kubernetes provides a DNS service that all pods get to use. In turn, you can define an ExternalName service that just defines a DNS record. Once you do that, your pods can talk to that service the same way they'd talk to any other Kubernetes service, and reach whatever server.

You could deploy a set of ExternalName services globally. You could do it in a Helm chart too, if you wanted, something like

apiVersion: v1
kind: Service
metadata:
  name: {{ .Release.Name }}-{{ .Chart.Name }}-foo
spec:
  type: ExternalName
  externalName: {{ .Values.fooHostname }}