/images/avatar.png

Setup Harbor with Self-Signed Certificates

I previously had a docker-registry setup for images and a simple httpd service for a Helm chart repo. It worked as expected most of the time until we found that a layered (aka prefix) chart does not work. The solution is to replace the above two services with Harbor (2.0+). Harbor is an OCI-compliant registry capable of serving OCI-compliant artifacts, including Helm charts (requires Helm 3.0+).

The general setup should work with other Ingress controllers like Nginx/nginx-ingress.

Thoughts on a New Start

Writing down some ideas as they come up.

Automation/Robot with AI

Learn the basics of AI and the libraries/tools available for home automation.

Automate Smart Home Installation with Playbooks

  1. k3s with Ingress basic installation playbook.
  2. Resources/artifacts installation via a playbook.

Note: The first one will also be used as a deployer base image.

How to Create/Request a Specific Floating IP

There are cases where you might need to request a specific floating IP:

  1. Go to the undercloud.

  2. Source the admin cloud credentials.

openstack floating ip create --floating-ip-address <your-ip> --description "openshift lbip" --project <project id to own this ip> ext-net

Read Kubernetes Secrets

A short note about reading Kubernetes Secrets.

kubectl get secret mysecret -o yaml

echo "the-encoded-string" | base64 --decode

kubectl get secret nsp-k8s-certs-expiration -o jsonpath="{.data.k8s-certs-expiration.txt}" | base64 --decode

RPM Import GPG Key

In the process of local repo setup/sync, I ran into a loop where RPM packages were downloaded but then removed due to a missing GPG key.

The reason reposync complains is that the upstream requires gpgcheck. For example:

[docker-ce]
name=Docker-CE Repository
baseurl=https://download.docker.com/linux/centos/7/$basearch/stable
enabled=1
gpgcheck=1
keepcache=0
gpgkey=https://download.docker.com/linux/centos/gpg

[docker-engine]
name=Docker-Engine Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
keepcache=0
gpgkey=https://yum.dockerproject.org/gpg

Resolution

  1. Disable gpgcheck in the upstream repo setting.
  2. Import the GPG keys.

To Import GPG Keys

Note: gpg --import is not the same as rpm --import.

Ceph Geo-Replication Models

Overview

  1. Ceph implements strong consistency between OSDs according to the replication factor, and reliability/availability according to the placement group (CRUSH MAP).

  2. Clusters utilizing cross-site (a)sync will be performance-compromised and require fat, low-latency pipes, which strongly affects the Ceph RADOS protocol (both on RBD and object storage).

  3. There is no recommendation/solution statement from Ceph upstream (or Red Hat) yet - https://tracker.ceph.com/projects/ceph/wiki/Can_Ceph_Support_Multiple_Data_Centers

  4. It sounds like the team is developing/enhancing a ‘real’ stretch Ceph cluster. (Attachment 2)