Skip to content

Instantly share code, notes, and snippets.

View TrongTan124's full-sized avatar

Nguyễn Trọng Tấn TrongTan124

  • VNPT-IT
  • Hà Nội, Việt Nam
View GitHub Profile
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: nginx-hpa
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: nginx-deploy
apiVersion: v1
kind: Service
metadata:
name: nginx-svc
labels:
app: nginx-dev
spec:
type: NodePort
ports:
- port: 80
@TrongTan124
TrongTan124 / nginx-deployment.yml
Created November 21, 2020 08:00
lab2-kubernetes-deployment
apiVersion: apps/v1 #Older versions of k8s use apps/v1beta1
kind: Deployment
metadata:
name: nginx-deploy
spec:
replicas: 2
selector:
matchLabels:
app: nginx-dev
minReadySeconds: 10
@TrongTan124
TrongTan124 / it-ebooks.md
Created June 23, 2020 08:12 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: frontend
labels:
app: tannt-myapp
role: frontend
spec:
selector:
matchLabels:
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
helm repo add wso2 https://helm.wso2.com
helm repo update
git clone https://github.com/wso2/kubernetes-apim.git
export HELM_HOME=/root/kubernetes-apim/advanced
#export KUBERNETES_HOME=/root/kubernetes-apim/advanced
ll $HELM_HOME/am-pattern-1/confs
import json
import requests
import time
import urllib
TOKEN = "687340460:AAE0ThDoRNnMiXr5dZAxSY68C4R4AzNUJpg"
URL = "https://api.telegram.org/bot{}/".format(TOKEN)
IMAGE_API_URL = "https://pixabay.com/api/?key=12005214-6f8260241d904f7e38503e6b0&q="
Sắp xếp ưu tiên
Là việc cần làm đầu tiên trong quản trị công việc và quản lý thời gian. Không sắp xếp được ưu tiên sẽ dẫn đến hiệu quả thấp và tình trạng "hoàn thành xuất sắc mọi nhiệm vụ, trừ những nhiệm vụ được giao".
Không dễ, nhưng có vài nguyên tắc:
1) Việc gấp làm trước. Nhưng thế nào là gấp thì lại là cả vấn đề. Cân nhắc về độ gấp, ngoài thời hạn, cần tính đến: hệ quả thế nào nếu chưa làm? có cơ hội làm lại hay không? ảnh hưởng đến những ai, việc gì? có phương án dự phòng không?
Nếu con bạn đi nhà trẻ, đến giờ đón con mà không có ai đón hộ thì đó là việc gấp. Không thể trì hoãn đến mai. Hệ quả có thể vô cùng nghiêm trọng.
[DEFAULT]
# Print debugging output (set logging level to DEBUG instead of default WARNING level).
debug = {{ debug }}
{% if not octavia_v2|bool %}
bind_host = 0.0.0.0
bind_port = {{ octavia_service_port }}
# api_handler = queue_producer
#
# How should authentication be handled (keystone, noauth)