Skip to content

Instantly share code, notes, and snippets.

@ymmt2005
ymmt2005 / neco_skills.md
Last active September 24, 2023 10:59
Neco プロジェクトのスキルシート

Neco プロジェクトのスキルチェックシート

Neco は大量の物理サーバーを効率的に管理・運用することを目的とした開発プロジェクトです。 Kubernetes を中心に高度な自律運用の実現を目指しています。

本文書はプロジェクトに参加しているメンバーが身に着けている要素技術を並べたものです。

応募時点ですべてを身に着けている必要はまったくありません。 社内にはチュートリアル資料が多数用意されていますので、必要に応じて学べます。

@antonfisher
antonfisher / allow-privileged-for-microk8s.md
Last active September 24, 2021 09:53
MicroK8s add --allow-privileged=true flag

Add --allow-privileged=true to:

# kubelet config
sudo vim /var/snap/microk8s/current/args/kubelet

#kube-apiserver config
sudo vim /var/snap/microk8s/current/args/kube-apiserver

Restart services:

@superseb
superseb / kubectl_recreate_cattlenodeagent_daemonset.sh
Created September 24, 2018 21:34
Re-create cattle-node-agent DaemonSet on Rancher 2.x
kubectl --kubeconfig kube_config_rancher.yml patch cluster local -p '{"status":{"agentImage":"dummy"}}' --type merge
@superseb
superseb / check-rancher.sh
Last active November 12, 2020 19:46
Check Rancher connectivity and certificate chain (check-rancher.sh https://rancher.yourdomain.com or docker run superseb/rancher-check https://rancher.yourdomain.com)
#!/bin/bash
if [[ $DEBUG == "true" ]]; then
set -x
fi
# Check if tools exist
command -v jq >/dev/null 2>&1 || { echo "jq is not installed. Exiting." >&2; exit 1; }
command -v dig >/dev/null 2>&1 || { echo "dig is not installed. Exiting." >&2; exit 1; }
command -v curl >/dev/null 2>&1 || { echo "curl is not installed. Exiting." >&2; exit 1; }
command -v sed >/dev/null 2>&1 || { echo "sed is not installed. Exiting." >&2; exit 1; }
@superseb
superseb / defaultdns.md
Last active April 25, 2025 12:16
Change default DNS nameserver used by Kubernetes pods

Change default DNS nameserver used by Kubernetes pods

This can be applied generically but usually applies to Linux nodes that have a local caching nameserver running, which means pointing to an IP in the loopback range (127.0.0.0/8). Ubuntu 18.04 Bionic Beaver does this by default.

Option 1: Change host configuration

sudo systemctl mask systemd-resolved
rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
apiVersion: v1
kind: Pod
metadata:
name: tf-wide-deep-census-pod
spec:
containers:
- image: <insert-image>
command: ["/bin/sh"]
args: ["-c", "/usr/bin/time python ./wide_deep.py --model_type=wide_deep --train_epochs=500 --epochs_between_eval=500 --batch_size=32561"]
name: tf-wide-deep-census
@sahya
sahya / docker-compose.yml
Last active August 16, 2018 05:22
keycloak-docker-compose (multi service)
# please : git clone https://github.com/weseek/growi-docker-compose.git
# special thanks : inductor
#------------------------------------
version: '3'
services:
nginx:
container_name: nginx
image: jwilder/nginx-proxy
restart: always
ports:
@buptliuwei
buptliuwei / Kubernetes cluster setup based on amd64 && NVIDIA JETSON TX2.md
Last active August 31, 2020 21:54
Our project aims to build a Multi-platform kubernetes cluster, we use the VM on x86 as master node and two nvidia tx2 development kits as node. So we can schedule both CPU and GPU resources.

Kubernetes cluster setup based on amd64 && NVIDIA JETSON TX2

Thanks to @luxas create the Kubernetes on ARM project. But my project has some different, i have a VM on x86 as master node and two nvidia tx2 development kits as work node. So my kubernetes cluster are multi-platform. I use kubeadm as a deployment method.Some basic information of my platform is as follows.

Versions

kubeadm version (use kubeadm version):1.10.0

Environment:

  • Kubernetes version (use kubectl version):1.10.0
  • Cloud provider or hardware configuration:an amd64 master and 1 arm nodes (nvidia tagra TX2)
@jkjung-avt
jkjung-avt / tegra-cam.py
Last active November 7, 2024 11:55
Capture and display video from either IP CAM, USB webcam, or the Tegra X2/X1 onboard camera.
# --------------------------------------------------------
# Camera sample code for Tegra X2/X1
#
# This program could capture and display video from
# IP CAM, USB webcam, or the Tegra onboard camera.
# Refer to the following blog post for how to set up
# and run the code:
# https://jkjung-avt.github.io/tx2-camera-with-python/
#
# Written by JK Jung <jkjung13@gmail.com>
@yamamoto-febc
yamamoto-febc / rancher-agents.tf
Last active May 23, 2018 08:15
Rancherのホスト(エージェント)登録をTerraformで
variable "password" {
default = "PUT_YOUR_PASSWORD_HERE"
}
variable "hostname" {
default = "agent-from-terraform"
}
#Create a new Rancher registration token
resource "rancher_registration_token" "default" {