Skip to content

Instantly share code, notes, and snippets.

Core concepts
1. Pod:
logic application
one or more containers + volumes (disks)
one IP per pod
highliy dependent containers will be packed into one single pod
2. Service:
persistent endpoint for pod
use lable to select pod
internal/external IP
@bargitta
bargitta / front end guidelines
Last active August 20, 2017 02:49
Coding guidelines
Coding guidline is to make sure that all team members are using the same vocabulary.
Here're coding guidelines for HTML, CSS and javascript.
Javascript: https://google.github.io/styleguide/javascriptguide.xml?showone=Displaying_Hidden_Details_in_this_Guide#Closures
CSS & HTML: https://google.github.io/styleguide/htmlcssguide.html#CSS
eslint config: https://github.com/google/eslint-config-google
To install:
npm install --save-dev eslint eslint-config-google
@bargitta
bargitta / Start your Docker
Last active July 15, 2025 22:41
a step by step guide for kubernetes begineers
Hello! This guide is to help you start using kubernetes.
First, install the official docker on your OS. Take Ubuntu 17.04 as an example.
1. Add GPG key of the official docker repo to your system
#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
2. Add docker repo to you APT source
#sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
3. Update your packages