全文検索:
- 16 Kubernetes + DRBD Linstor @06_virtualization:05_container
- 環境 ====== 今回はKubernetesのworkerノード3台で、Linstor ^ name ^ IP ^ Disk ^ DRBD用 ^ |node1|172.16.0.65|/dev/sda... | StoragePool | Node | Driver | PoolName | FreeCapacity | TotalCapacity | CanSnapshots | State | SharedName | |============================================... esource | StoragePool | VolNr | MinorNr | DeviceName | Allocated | InUse | State | |=========
- 20 Kubernetes GlusterFS Galera Wordpress @06_virtualization:05_container
- apiVersion: v1 kind: PersistentVolume metadata: name: wordpress-pv labels: name: wordpress-pv spec: accessModes: - ReadWriteMany capacity: s... labels: io.kompose.service: wordpress-pvc name: wordpress-pvc spec: accessModes: - ReadWrite... storage: 1Gi selector: matchLabels: name: wordpress-pv status: {} </code> === 作成 ===
- 18 Kubernetes GlusterFS @06_virtualization:05_container
- ====== 18 Kubernetes GlusterFS ====== ^ hostname ^ IP ^ |g-master|172.16.0.103| |g-work01|172.16.0.93| ... .yaml> apiVersion: v1 kind: Endpoints metadata: name: glusterfs labels: storage.k8s.io/name: glusterfs storage.k8s.io/part-of: kubernetes-complete... - addresses: - ip: 172.16.0.93 hostname: g-work01 - ip: 172.16.0.153 hostna
- 13 Kubernetes Nginxを立ててみる @06_virtualization:05_container
- apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 3 selector: matchL... : nginx-app spec: containers: - name: nginx image: nginx:latest po... ml <code> # kubectl get deployments.apps -o wide NAME READY UP-TO-DATE AVAILABLE AGE CONTAIN... nginx:latest app=nginx-app # kubectl get pod NAME READY STATUS RESTARTS
- 01 Docker コマンド @06_virtualization:05_container
- モンとして起動、一回起動するだけなら「-d」を除く docker run -d -it [--name=name] IMAGE bash === 例 === <code> docker run -d -it --name=test-containter cent68-php71 bash </code> ==== コンテナへ入る ==== docker exec -it [NAME|ID] bash === ユーザ指定ででログイン === 下記は、rootユーザでログイン
- 19 Kubernetes Scale @06_virtualization:05_container
- apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx spec: selector: matchLabels: ... run: my-nginx spec: containers: - name: my-nginx image: nginx ports: ... <code> # kubectl get deployments.apps my-nginx NAME READY UP-TO-DATE AVAILABLE AGE my-ngi... 5m19s # kubectl get pod -l run=my-nginx NAME READY STATUS RESTARTS
- 31 Docker FTP Server @06_virtualization:05_container
- ent: PUBLICHOST: "localhost" FTP_USER_NAME: username FTP_USER_PASS: mypass FTP_USER_HOME: /home/username ↓ environment: PUBLICHOST: "[HOSTNAME]" FTP_USER_NAME: [USER] FTP_USER_PASS:
- 17 Kubernetes IPマスカレード @06_virtualization:05_container
- > apiVersion: apps/v1 kind: DaemonSet metadata: name: ip-masq-agent namespace: kube-system spec: s... hostNetwork: true containers: - name: ip-masq-agent image: gcr.io/google-conta... rivileged: true volumeMounts: - name: config mountPath: /etc/config volumes: - name: config configMap: # Note t
- 27 Docker Djnago @06_virtualization:05_container
- yml> version: '3' services: django: container_name: "django" build: . command: python3 manage.... - CHOKIDAR_USEPOLLING=true db: container_name: "db" image: mysql:8.0 restart: always e... yml> version: '3' services: django: container_name: "django" build: . command: python3 manage.... - app_proxy-tier - default db: container_name: "db" image: mysql:8.0 restart: always e
- 02 差分バックアップ increment backup @06_virtualization:01_citrix_xenserver
- -snapshot uuid=$VDI) xe vdi-export uuid=$FULL filename=$NFS/full.vhd format=vhd --progress </code> ===... snapshot uuid=$VDI) xe vdi-export uuid=$DELTA filename=$NFS/delta.vhd format=vhd base=$FULL --progress <... をリストア ==== <code> xe vdi-import uuid=$RESVDI filename=$NFS/full.vhd format=vhd progress=true </code> =... をリストア ==== <code> xe vdi-import uuid=$RESVDI filename=$NFS/delta.vhd format=vhd progress=true </code>
- 02 Docker Compose docker-compose @06_virtualization:05_container
- compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose ==== ※2022... ompose/releases/download/v2.13.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose </code> ===== W
- 08 docker-compose Nginx @06_virtualization:05_container
- de> mkdir -p nginx/conf.d mkdir -p nginx/html hostname > nginx/html/index.html cat << __EOM__ server { listen 80; server_name localhost; #charset koi8-r; #access_log... ex index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .ht
- 09 Dockerリバースプロキシ(HTTPS) @06_virtualization:05_container
- lt.conf <code> server { listen 80; server_name hogehoge.com; location / { proxy_request_buf... d_for; } } server { listen 80; server_name hogehoge2.com; location / { proxy_request_bu... d_for; } } server { listen 80; server_name hogehoge3.com; location / { proxy_request_bu... _body_size 1g; server { listen 80; server_name hogehoge.com; location / { proxy_request_buf
- 12 Kubernetes @06_virtualization:05_container
- code> 名前や、CIDRを指定する場合 <code> kubeadm init --node-name master --pod-network-cidr=10.224.0.0/16 </code> ... c/kubernetes/admin.conf # kubectl get node NAME STATUS ROLES AGE VERSI... tion/kube-flannel.yml <code> # kubectl get node NAME STATUS ROLES AGE VE... 3m8s v1.23.5 ↓ # kubectl get node NAME STATUS ROLES AGE VER
- 25 Let's Encrypt リバースプロキシ @06_virtualization:05_container
- mage: nginxproxy/nginx-proxy:alpine container_name: proxy restart: always ports: - 80:... image: nginxproxy/acme-companion container_name: letsencrypt restart: always volumes: ... トワークを確認 <code> # docker network ls NETWORK ID NAME DRIVER SCOPE da005313961c app_pr... s: nginx: image: nginx:latest container_name: nginx ports: - "8080:80" volumes: