Skip to content

Instantly share code, notes, and snippets.

View taking's full-sized avatar
🐈
Focusing

taking taking

🐈
Focusing
View GitHub Profile
@taking
taking / Centos 7 Minimal Basic setting script.sh
Last active May 12, 2022 00:42
Centos 7 Minimal Basic setting script.sh
#!/bin/sh
## taking.kr (webmaster@taking.kr)
## 20-01-13
## ROOT 계정으로 실행하기
###########################################
read -p "hostname (ex taking.kr): " uhost
read -p "username(not root): " uname
############ nameserver setting ###############
# Personal .editorconfig setting, 2022-05-23
# top-most EditorConfig file
root = true
# Tab indentation
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
@taking
taking / elastic.yaml
Last active June 12, 2022 05:03
(Bare Metal) Kubernetes ELK OSS Version Yaml
# elastic.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: elasticsearch
namespace: telemetry
labels:
app: elasticsearch
spec:
replicas: 1

Docker Registry - Docker Hub Pull Through Mirror

Prerequisites

  • docker
  • docker-compose
mkdir -p registry/auth
docker run \
  --entrypoint htpasswd \

Pipeline

repo pull/push
Access Token 발급

image image

.gitlab-ci.yaml

윈도우에서 ssh pem 키 권한 문제 발생 시

icacls.exe key.pem /reset
icacls.exe key.pem /grant:r %username%:(R)
icacls.exe key.pem /inheritance:r
package main
import (
"context"
"fmt"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"

Vagrant

Prerequisites

  • CPU supports hardware virtualization Check not '0' (egrep -c '(vmx|svm)' /proc/cpuinfo)
  • Virtualbox (apt install virtualbox)
  • Vagrant (apt install vagrant)

Tip