Neco は大量の物理サーバーを効率的に管理・運用することを目的とした開発プロジェクトです。 Kubernetes を中心に高度な自律運用の実現を目指しています。
本文書はプロジェクトに参加しているメンバーが身に着けている要素技術を並べたものです。
応募時点ですべてを身に着けている必要はまったくありません。 社内にはチュートリアル資料が多数用意されていますので、必要に応じて学べます。
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-apiserverRestart services:
| kubectl --kubeconfig kube_config_rancher.yml patch cluster local -p '{"status":{"agentImage":"dummy"}}' --type merge |
| #!/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; } |
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.
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 |
| # 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: |
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.
kubeadm version (use kubeadm version):1.10.0
Environment:
kubectl version):1.10.0| # -------------------------------------------------------- | |
| # 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> |
| variable "password" { | |
| default = "PUT_YOUR_PASSWORD_HERE" | |
| } | |
| variable "hostname" { | |
| default = "agent-from-terraform" | |
| } | |
| #Create a new Rancher registration token | |
| resource "rancher_registration_token" "default" { |