/images/avatar.png

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)

Blog Setup Document / README

“Borderless” Documents (ENG)

“Borderless”, Gatsby Blog Starter (Theme)

Static websites created with Gatsby, Borderless Blog Theme.

This document is based on the distribution to Github Pages.

Borderless DEMO WebSite

  • Simple design with minimal color without border
  • Create Markdown Posts (Markdown + emoji, ktex)
  • Search Engine Optimization (SEO)
  • Support Reader Mode in posts such as Safari browser
  • Google Analytics support
  • Google Adsense support
  • Disqus comment function

Install

There are two ways to get started with this blog.