Skip to content

Instantly share code, notes, and snippets.

@willzhang
willzhang / longhorn-template.yaml
Created August 6, 2022 15:01
longhorn-template
---
# Source: longhorn/templates/psp.yaml
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: longhorn-psp
labels:
app.kubernetes.io/name: longhorn
helm.sh/chart: longhorn-1.3.0
app.kubernetes.io/managed-by: Helm
@willzhang
willzhang / istiod-template.yaml
Created August 6, 2022 14:53
istiod-template
---
# Source: istiod/templates/poddisruptionbudget.yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: istiod
namespace: default
labels:
app: istiod
istio.io/rev: default
@willzhang
willzhang / Rook-Log-Collection.log
Created March 13, 2022 01:46
Rook-Log-Collection.log
This file has been truncated, but you can view the full file.
Last login: Sun Mar 13 09:02:20 2022 from 113.118.79.224
Authorized users only. All activity may be monitored and reported
[root@Ops-repo ~]# for p in $(kubectl -n rook-ceph get pods -o jsonpath='{.items[*].metadata.name}')
> do
> for c in $(kubectl -n rook-ceph get pod ${p} -o jsonpath='{.spec.containers[*].name}')
> do
> echo "BEGIN logs from pod: ${p} ${c}"
> kubectl -n rook-ceph logs -c ${c} ${p}
> echo "END logs from pod: ${p} ${c}"
> done
@willzhang
willzhang / v1.17.3-e2e.log
Created March 6, 2020 06:04
v1.17.3-e2e.log
This file has been truncated, but you can view the full file.
I0306 02:38:59.604733 19 test_context.go:406] Using a temporary kubeconfig file from in-cluster config : /tmp/kubeconfig-780690759
I0306 02:38:59.604746 19 test_context.go:419] Tolerating taints "node-role.kubernetes.io/master" when considering if nodes are ready
I0306 02:38:59.604856 19 e2e.go:109] Starting e2e run "e0336c13-b471-4627-93ef-421cefc2a866" on Ginkgo node 1
{"msg":"Test Suite starting","total":278,"completed":0,"skipped":0,"failed":0}
Running Suite: Kubernetes e2e suite
===================================
Random Seed: 1583462338 - Will randomize all specs
Will run 278 of 4843 specs
Mar 6 02:38:59.650: INFO: >>> kubeConfig: /tmp/kubeconfig-780690759
[root@ansible1 templates]# cat main.yml
- name: Check if docker is installed
shell: 'systemctl status docker | grep running || echo "not running"'
register: docker_status
- name: fail info
fail: msg="docker already installed!"
when: '"active" in docker_status.stdout'
- name: copy docker binary into /usr/bin
@willzhang
willzhang / vagrant_swap_debug.log
Created December 9, 2019 05:16
vagrant_swap_issue_debug
This file has been truncated, but you can view the full file.
INFO global: Vagrant version: 2.2.6
INFO global: Ruby version: 2.4.9
INFO global: RubyGems version: 2.6.14.4
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\2.2.6\\gems\\vagrant-2.2.6\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/plugins/commands/box/plugin.rb
@willzhang
willzhang / shadowsocks
Created June 15, 2019 10:51
shadowsocks
```
#!/bin/bash
docker stop ssserver
docker rm ssserver
read -p "Enter your password:" password
#docker run -dt --name ssserver -p 6443:6443 mritd/shadowsocks -s "-s 0.0.0.0 -p 6443 -m chacha20-ietf-poly1305 -k $password"
docker run -dt --name ssserver --restart always -p 6443:6443 -p 6500:6500/udp mritd/shadowsocks -m "ss-server" -s "-s 0.0.0.0 -p 6443 -m chacha20-ietf-poly1305 -k $password" -x -e "kcpserver" -k "-t 127.0.0.1:6443 -l :6500 -mode fast2"
echo "##############connection info##############"
echo "port=6443"
echo "encryption=chacha20-ietf-poly1305"
@willzhang
willzhang / test
Created June 15, 2019 04:01
test
test