Skip to content

Instantly share code, notes, and snippets.

Prerequisites
- Docker
- kubectl
- Minikube
- Helm
Noted: This guide is just for Macbook Pro. I would like to it supports the both Linux and Windows later.
1. Set up a registry server
You can follow the guide from the docker for creating a [local registry](https://docs.docker.com/registry/deploying/)
@sau-lanvy
sau-lanvy / create_branch_from_tag
Created December 18, 2018 05:51 — forked from nickfloyd/create_branch_from_tag
To create a branch from a tag
-Go to the starting point of the project
>> git checkout origin master
-fetch all objects
>> git fetch origin
-Make the branch from the tag
>> git branch new_branch tag_name
-Checkout the branch
>> git checkout new_branch
-Push the branch up
>> git push origin new_branch
@sau-lanvy
sau-lanvy / docker-cleanup-resources.md
Created October 23, 2018 14:47 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@sau-lanvy
sau-lanvy / kubernetes-cluster-using-kubespray.md
Last active January 19, 2024 17:27
Deploy a Production Ready Kubernetes Cluster using Kubespray with Ansible

Deployment Architecture

deployment architecture

System Configuration

  1. All kubernetes nodes: set SELINUX to permissive mode
$ vi /etc/selinux/config
SELINUX=permissive

$ setenforce 0
@sau-lanvy
sau-lanvy / kubernetes-network-debugging.md
Last active February 6, 2023 18:37
Kubernetes network debugging

Here are some tools and techniques will help us debugging connectivity issues, investigating network througout problems and how to fix.

Using nc

Arbitrary TCP and UDP connections and listens at here

Kubernetes 101 – Networking

This post is to walk you through deploying a couple of Kubernetes constructs and analyze what Kubernetes is doing at the network layer to make it happen. Link

Kubernetes Network Debugging on CoreOS

This document explains some of the best places to start troubleshooting when network issues arise link

@sau-lanvy
sau-lanvy / introrx.md
Created July 6, 2017 02:36 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing