Wednesday, March 10, 2021

building kubernetes: Fedora 33 and master kubernetes - requirement golang 1.16

$ dnf update   https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/noarch/golang-src-1.16-1.fc34.noarch.rpm --best --allowerasing

$  dnf install https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/x86_64/golang-1.16-1.fc34.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/x86_64/golang-bin-1.16-1.fc34.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/x86_64/golang-race-1.16-1.fc34.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/x86_64/golang-shared-1.16-1.fc34.x86_64.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/noarch/golang-misc-1.16-1.fc34.noarch.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/noarch/golang-docs-1.16-1.fc34.noarch.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/noarch/golang-misc-1.16-1.fc34.noarch.rpm https://kojipkgs.fedoraproject.org//packages/golang/1.16/1.fc34/noarch/golang-tests-1.16-1.fc34.noarch.rpm


Monday, March 1, 2021

oVirt Driver to install Windows 2019 Server

1. Download oVirt Guest tools iso

https://resources.ovirt.org/pub/ovirt-4.3/iso/oVirt-toolsSetup/4.3-2/el7/oVirt-toolsSetup-4.3-2.el7.iso

2. Upload oVirtToolsSetup iso to your data/iso storage in the Cluster

3. Change the CD to oVirt Tools Setup

After booting the Windows installer, select the Virtual machine in the Admin portal and click ... and Change CD attach oVirt Tools Setup 4.3.2.

4. Re-attach Windows 2019 Server ISO

Attach again the windows ISO by selecting the Virtual machine in the Admin portal and click ... and Change CD attach Window Server 2019 ISO.


A good video explaining the process:

https://www.youtube.com/watch?v=m5Ud4RZI8bU&t=503s


Thursday, August 20, 2020

traefik: kubernetes service not found: xyz

Check if the removed application left the ingressroute behind.

$ kubectl delete ingressroute -n ${NAMESPACE} ${INGRESSROUTE_APP}

Tuesday, August 18, 2020

helm3: installing kubeapps over TLS

$ kubectl create ns kubeapps

$ helm install  kubeapps --namespace kubeapps bitnami/kubeapps \

  --set ingress.enabled=true \

  --set ingress.certManager=true \

  --set ingress.hosts[0].name=kubeapps.medogz.com \

  --set ingress.hosts[0].tls=true \

  --set ingress.hosts[0].tlsSecret=kubeapps-tls


2. Create the secret
$ kubectl -n default create secret tls kubeapps-tls -n kubeapps --key=/path/STAR_medogz_com.key --cert=/path/STAR_medogz_com.crt 

3. Get the token to access the kubeapps.medogz.com

$  kubectl get secret $(kubectl get serviceaccount kubeapps-operator -o jsonpath='{.secrets[].name}') -o jsonpath='{.data.token}' -o go-template='{{.data.token | base64decode}}' && echo


4. Access https:/kubeapps.medogz.com

NOTE: After the login, some images will load from external network and the site won't be accessed fully by TLS.

Saturday, August 15, 2020

Lenovo thinkpad x1: How to enable the Keyboard Backlight ?

On the keyboard, the keys that are used to enable or disable the backlight is the Fn + Space bar.

Wednesday, August 5, 2020

kubectl: decode a secret

$ kubectl get secrets  registry-medogz-tls-cert -o yaml | grep " tls.crt: " | cut -d ':' -f 2 | awk '{$1=$1};1' | base64 -d

----BEGIN CERTIFICATE-----
MIIDZjCCAk4CCQDjsgIRiJ4soTANBgkqhkiG9w0BAQsFADB6MQswCQYDVQQGEwJV
UzEWMBQGA1UEBwwNTmV3IEhhbXBzaGlyZTEPMA0GA1UECgwGbWVkb2d6MSEwHwYD
VQQDDBhJTlRFUk1FRElBVEUgbWVkb2d6LmhvbWUxHzAdBgkqhkiG9w0BCQEWEG1l
aXNAbWVkb2d6LmhvbWUwHhcNMjAwODAzMDEzNDMxWhcNMjUwODAzMDEzNDMxWjBw
MQswCQYDVQQGEwJVUzELMAkGA1UECAwCTkgxDzANBgNVBAcMBk5hc2h1YTEUMBIG
Nx5qyZfObKcsTNZpzH+3Ihiu0ax/ScPHSZvAp4FH3AEUK+XWSBg9qU9HP/e15XrI
75GGfw2M7bim+EOnDVii9wEnwKRRSKFJhHmPrWJF2mCyezYx80EsRE5l2djkkpuC
yYbYmyHBGYN3jewpOc1UZAvDJUMJsmVdS9+skRzcMsoppxyI7BMk/2jmlMgm0+7K
X/UsyJ4k3Yd02g==
-----END CERTIFICATE-----