Skip to content

Instantly share code, notes, and snippets.

@hieunt79
hieunt79 / curl.md
Created November 2, 2019 07:38 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@hieunt79
hieunt79 / install_docs.txt
Last active March 10, 2020 12:22
designate install ...
apt-get install -y software-properties-common
add-apt-repository -y cloud-archive:queens
# apt update && apt dist-upgrade
# for openstack before stein
apt install python-openstackclient
#from scapy.all import *
import subprocess
from datetime import datetime
import time
import sys
import csv
# python <filename.py> interface conntrack_threshold &
def dump(interface, duration=60):

Access dashboard in Kubernetes


In this guide, we will find out how to create a new user using Service Account mechanism of Kubernetes, grant this user admin permissions and log in to Dashboard using bearer token tied to this user.

Copy provided snippets to some xxx.yaml file and use kubectl apply -f xxx.yaml to create them.

Create admin

Create Service Account with name admin-user in namespace kube-system first.

Helm Basic


Helm là công cụ cho phép triển khai, quản lý các ứng dụng trong Kubernetes dễ dàng hơn. Helm sử dụng các chart (là tập hợp các file yaml (manifest)) để triển khai ứng dụng. Helm cung cấp các tính năng:

  • Tìm kiếm và sử dụng các ứng dụng được cấu hình từ trước trên helm (helm-chart), ưu điểm là có thể sử dụng luôn mà chỉ cần thay đổi rất ít thông số, nhưng nhược điểm là kiến trúc được định nghĩa từ trước, thay đổi cần thêm thời gian tìm hiểu
  • Tự mình cũng có thể định nghĩa một chart cho ứng dụng muốn, giúp cho các lần cài đặt sau đơn giản hơn nhiều.
  • Sửa đổi các file manifest đơn giản bởi Helm hỗ trợ file cấu hình tập trung (values.yaml) và cho phép người dùng định nghĩa thêm (predefined-values và Partials)

1. Keywords