Skip to content

Instantly share code, notes, and snippets.

Avatar
🇹🇼
o p e n

Phil Huang pichuang

🇹🇼
o p e n
View GitHub Profile
View cpu.txt
application-ui Requests:100m Limites:
cert-manager Requests:100m Limites:300m
cainjector Requests:100m Limites:200m
cert-manager-webhook Requests:100m Limites:200m
configmap-watcher Requests:100m Limites:200m
hcm-ui-api Requests:50m Limites:
hcm-ui Requests:100m Limites:
console-header Requests:200m Limites:
etcd Requests: Limites:
etcd Requests: Limites:
View test-ipblock-ingress-egress.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: test-network-policy
namespace: default
spec:
podSelector:
matchLabels:
role: db
policyTypes:
@pichuang
pichuang / import.sh
Created Feb 15, 2020
Quicky Import my personal cert and ssl
View import.sh
#!/bin/bash
cd /etc/pki/ca-trust/source/anchors/
wget http://bastion.pichuang.local/homecloud-pki/homecloud-chain.pem
update-ca-trust
@pichuang
pichuang / firewall-cmd allow 80 443
Last active Feb 2, 2020
Create Simple HTTPS Server using Python2 and Python3
View firewall-cmd allow 80 443
#!/bin/bash
firewall-cmd --list-all
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-all
@pichuang
pichuang / etc_sysconfig_gitlab
Created Dec 20, 2019
Running GitLab Container with podman and systemd
View etc_sysconfig_gitlab
IMAGE=docker.io/gitlab/gitlab-ce:12.2.0-ce.0
HOSTNAME=gitlab.pichuang.local
NAME=gitlab-ce
View rate_limit-advanced,yaml
apiVersion: "config.istio.io/v1alpha2"
kind: rule
metadata:
name: quota
namespace: istio-system
spec:
actions:
- handler: handler.memquota
instances:
- requestcount.quota
View br0.xml
<network>
<name>br0</name>
<forward mode="bridge" />
<bridge name="br0" />
</network>
View s3cmd
Usage: s3cmd [options] COMMAND [parameters]
S3cmd is a tool for managing objects in Amazon S3 storage. It allows for
making and removing "buckets" and uploading, downloading and removing
"objects" from these buckets.
Options:
-h, --help show this help message and exit
--configure Invoke interactive (re)configuration tool. Optionally
use as '--configure s3://some-bucket' to test access
@pichuang
pichuang / tuned.conf
Created May 3, 2019 — forked from likid0/tuned.conf
RHCS on All Flash Cluster : Performance Blog Series : tuned.conf profile for ceph nodes
View tuned.conf
cat /usr/lib/tuned/ceph-tuned/tuned.conf
[main]
summary=ceph_perf
[cpu]
governor=performance
energy_perf_bias=performance
min_perf_pct=100
force_latency=1
View ansible.cfg
[defaults]
forks = 20
host_key_checking = False
roles_path = roles/
gathering = smart
fact_caching = jsonfile
fact_caching_connection = $HOME/ansible/facts
fact_caching_timeout = 600
log_path = ./ansible.log
nocows = 1
You can’t perform that action at this time.