apiVersion: "cilium.io/v2"
kind: CiliumClusterwideNetworkPolicy
metadata:
name: "host-policy-for-master"
spec:
description: ""
nodeSelector:
matchLabels:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # flock_lock_test.sh | |
| ( | |
| # flock -w: timeout 20sec, -n: 바로 lock을 얻을수 없을경우 대기 하기 보다는 fail | |
| # 200은 fd | |
| flock -n -w 20 200 | |
| if [ "$?" != "0" ]; then | |
| echo "locked" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import os, sys, subprocess, pexpect | |
| msg = 'Are you sure you want to continue connecting' | |
| con_msg = 'rcp -r ./test/ acc@server:~/' | |
| child = pexpect.spawn(con_msg) | |
| #index = child.expect([msg, 'password:', pexpect.EOF, pexpect.TIMEOUT], 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: prepull | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: prepull | |
| template: | |
| metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: prepull | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: prepull | |
| template: | |
| metadata: |
helm upgrade cilium cilium --version 1.9.8 \
--set prometheus.enabled=true \
- golang >= 1.18
- kind >= v0.11.1
# summary
#1. install a bin
#2. adjust docker daemon resourcecurl -O https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.4.7/docs/install/iam_policy.json
aws iam create-policy \
--policy-name AWSLoadBalancerControllerIAMPolicy \- k8s pod에서 api 호출시 간헐적인 timeout 발생(5s)
- 사용자 클러스터에서 확인을 해보니 dns resolving시 5초 정도의 딜레이가 생기고 다시 리졸빙한 이력이 있다(tcpdump 내용)
- A(ipv4), AAAA(ipv6)로 동시에 요청을 보내는데 응답이 안오는 경우가 간헐적으로 있고, 5초 정도의 딜레이가 생기고 다시 요청한다.
- dns resolving시 pod → kube-dns → local dns resolver 로 dns search를 하는 과정에서 no such domain의 딜레이가 발생함
- no such domain(NXDOMAIN)의 경우는 k8s의 dns resolving시 클러스터 dns의 kube-dns를 조회하는 과정에서 생긴 결과이고,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install tmux | |
| sudo apt update | |
| sudo apt install -y \ | |
| tmux \ | |
| golang-go | |
| # install docker : so convenience tools, only for testing | |
| # from https://docs.docker.com/engine/install/ubuntu/ |
OlderNewer