HELM Cheatsheet

HELM Cheatsheet

Cheatsheet for HELM

Nathan Obert
Introduction “Helm is the best way to find, share, and use software built for Kubernetes.” Kubernetes is a great container orchistration tool, however managing all the yaml files associated with it become a huge undertaking. Helm is a tool that allows you to create templates for Kubernetes yaml files. Then you only have to manage a set a value pairs that are passed to your templates. This allows you to easily share packages of templates, and other people can easily bring your containers online only having to modify the values to match their needs to customize or configure.
Rancher Desktop for Kubernetes and Docker on Windows 11

Rancher Desktop for Kubernetes and Docker on Windows 11

Installation of Rancher Desktop for Kubernetes and Docker on Windows 11

Introduction Rancher Desktop is a Kubernetes and Docker platform that is a replacement for Docker Desktop. I’ll be installing and configuring it using the installation guide provided in Rancher’s Documentation Rancher is a replacement for Docker Desktop. Rancher provies you helm, kubernetes, docker, the CRI runtimes of dockerd or containerd kubernetes. It integrates in nicely with WSL if you wish to use Linux instead of Windows. Additionally it lets you choose which version of Kubernetes you want to run.
Git Cheatsheet

Git Cheatsheet

Cheatsheet for Git

Nathan Obert
Introduction This cheat sheet from Alex arak14’s Cheatsheet. Git is a version constrol system often used by developers, and devops to store insource code and configurations. It has even been adapted to store websites that are rended to the internet (like this one!) using Hugo. Git repositories are distributed in that each developers has a local copy of the repository and a series of pushs, pulls, merges, forks occur for the repositories to synchronize with one another.
XRP to remote Gnome on Redhat Enterprise Linux 9

XRP to remote Gnome on Redhat Enterprise Linux 9

Installation of XRP and Gnome

Nathan Obert
Introduction We will be turning a Command Line Interface (CLI) Redhat 9 server hosted at Amazon on EC2 into a full Xwindows based workstation that you can use Remote Desktop Protocal (RDP) to using xRDP. Installation Install the updates on your fresh server from Amazon. sudo dnf update -y Install “Extra Packages for Enterprise Linux” (EPEL). sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm sudo dnf repolist sudo dnf makecache Install “Workstation” or “Server with GUI” (not both)
Python HTTP Server

Python HTTP Server

Quick Python HTTP Server

Nathan Obert
python http server If you need a quick and easy webserver to copy files between servers, or from your server to your workstation all you need is Python, which is part of YUM and is on almost every redhat based linux server. Simple goto the directory you want to share, and a single command in the shell will start up a webserver that you can use to get your files copied over.
Docker Cheatsheet

Docker Cheatsheet

Cheatsheet for Docker

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s Docker Cheatsheet Docker Cheatsheet Tutorial series Get started with Docker: https://docs.docker.com/engine/getstarted/ Installation Linux Install script provided by Docker: curl -sSL https://get.docker.com/ | sh Or see Installation instructions for your Linux distribution. Mac OS X Download and install Docker For Mac Create Docker VM with Docker Machine You can use Docker Machine to: Install and run Docker on Mac or Windows Provision and manage multiple remote Docker hosts Provision Swarm clusters A simple example to create a local Docker VM with VirtualBox:
Elastic Developer Cheatsheet

Elastic Developer Cheatsheet

Cheatsheet for Elastic Developer

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s Elastic Developer Cheatsheet Data Manipulation Put/Get/Delete index curl -XPUT localhost:9200/index-name -d '{"settings": { "number_of_shards": 1}}' curl -XGET localhost:9200/index-name?pretty curl -XDELETE localhost:9200/index-name Put/Get/Delete template curl -XPUT localhost:9200/_template/template-name -d '{ "template": "logs*", "mappings": { "foo-type": { "properties": { "foo-field": { "type": "text" } } } }, "settings": { "number_of_shards": 1 } }' curl -XGET localhost:9200/_template/template-name?pretty curl -XDELETE localhost:9200/_template/template-name Bulk API echo '{"index": { "_index": "logs01", "_type": "logs"}} {"title": "this is an error"} {"index": { "_index": "logs02", "_type": "logs"}} {"title": "this is a warning"} {"delete": { "_index": "logs03", "_type": "logs", "_id": "abc123"}} ' > /tmp/bulk curl localhost:9200/_bulk?
Elastic Devops Cheatsheet

Elastic Devops Cheatsheet

Cheatsheet for Elastic Devops

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s Elastic Devops Cheatsheet DevOps cheatsheet Allocation Allocation awareness Avoids putting two copies of the same shard on nodes with the same attribute (e.g. rack, availability zone). For example: node.attr.availability_zone: us-east1 # in elasticsearch.yml Awareness is enabled at the cluster level: curl -XPUT localhost:9200/_cluster/settings?pretty -d '{ "persistent" : { "cluster.routing.allocation.awareness.attributes" : "availability_zone" } }' Allocation filtering Shards of an index can prefer/avoid nodes with certain attributes.
SOLR Metrics Cheatsheet

SOLR Metrics Cheatsheet

Cheatsheet for SOLR Metrics

Nathan Obert
Introduction This is a quick cheat sheet from Sematext’s SOLR Metric’s Cheatsheet Solr Metrics API Retrieving all Metrics Get all metrics: localhost:8983/solr/admin/metrics Retrieving Metrics for Specific Group Metrics for a group (groups: solr.jvm, solr.node, solr.jetty, solr.core.<collection_name>): localhost:8983/solr/admin/metrics?group=solr.jvm Retrieving Metrics in JSON Default is XML. For JSON: localhost:8983/solr/admin/metrics?wt=json localhost:8983/solr/admin/metrics?wt=json&indent=true Jetty Metrics Number of Requests with Given Response Status Check the number of requests with the given HTTP status, useful when checking for number of errors and successful requests:
Kubernetes Cheatsheet

Kubernetes Cheatsheet

Cheatsheet for Kubernetes

Nathan Obert
Introduction This is a quick cheat sheet from Kubernetes Website’s Cheatsheet. This page contains a list of commonly used kubectl commands and flags. Kubectl autocomplete BASH source <(kubectl completion bash) # set up autocomplete in bash into the current shell, bash-completion package should be installed first. echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell. You can also use a shorthand alias for kubectl that also works with completion:
OpenSSL Cheatsheet

OpenSSL Cheatsheet

Cheatsheet for OpenSSL

Nathan Obert
Introduction This cheat sheet from Dave Wongillies’s Cheatsheet. OpenSSL is a very strong tool when working with certificates. OpenSSL can be used to for a wide variaty of taks involving SSL/TLS. For instance you can use it to convert certificates from format to another, use it as a debugging tool, use it to generate certificates, use it to download certificates from hosts, and even use it as a connectivity tool if telnet is not available.
Markdown Cheatsheet

Markdown Cheatsheet

Cheatsheet for writing Markdown

Nathan Obert
Introduction This is a quick cheat sheet from Adam Pritchard’s Cheatsheet that is useful when writing markup to make sure the syntax is correct. Markdown is a syntax used to format text. It essentially is a short form version of Hypertext Mark Up Language (HTML). You can achieve similar formatting with far less effort and by writing in Markdown instead of HTML. There is a Live Demo of Markdown available. This is especially useful if you would like to see what the rendered interactively.
About Nathan Obert

About Nathan Obert

About the Author

Nathan Obert
Professional I started writing code in 1980 when I was 5 years old. Atari Line Basic! I’ve have been doing Development and IT work since then. Most likely you have used, or your information is in one of the many systems i’ve worked on. I’m happily employeed at Armedia. My Resume is on Linked In if you would like to look it over. I graduated from George Mason University. I have a Master’s, Bachelor’s, and Associate’s in Computer Science, as well as a second Associate’s in Mathematics.
Kubernetes on Redhat Enterprise Linux 9

Kubernetes on Redhat Enterprise Linux 9

Installation of Kubernetes Server

Nathan Obert
Introduction We will install a Kubernetes on RHEL 9 with CRI-O, and Podman. We are using an r5.large on Amazon EC2 using Amazon’s provided Red Hat Enterprise Linux. Installation Install the updates on your fresh server from Amazon. sudo dnf update -y Setup DNS or atleast Hostname entries in your /etc/hosts file echo `/sbin/ifconfig eth0 | grep 'inet ' | awk {'print $2'}` ${HOSTNAME} | sudo tee -a /etc/hosts Set selinux to permissive