全文検索:
- 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> === 作成 ===
- 16 Kubernetes + DRBD Linstor @06_virtualization:05_container
- 環境 ====== 今回はKubernetesのworkerノード3台で、Linstor ^ name ^ IP ^ Disk ^ DRBD用 ^ |node1|172.16.0.65|/dev/sda... tor-master:~# kubectl get pod alpine-test -o wide NAME READY STATUS RESTARTS AGE IP ... instor https://charts.linstor.io # helm repo list NAME URL linstor https://charts.linstor.io </code> ... 認 ==== ちゃんとpodが起動してればOK <code> # kubectl get pod NAME READY S
- 18 Kubernetes GlusterFS @06_virtualization:05_container
- .yaml> apiVersion: v1 kind: Endpoints metadata: name: glusterfs labels: storage.k8s.io/name: glusterfs storage.k8s.io/part-of: kubernetes-complete... ce.yaml> kind: Service apiVersion: v1 metadata: name: glusterfs spec: ports: - port: 1 </code> ==... apiVersion: v1 kind: PersistentVolume metadata: name: k8s-volume-pv01 labels: name: k8s-volume-p
- 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
- 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
- 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: ... e: vhost.d: html: networks: proxy-tier: name: proxy-tier </code> ==== server.conf作成 ==== ファイ... トワークを確認 <code> # docker network ls NETWORK ID NAME DRIVER SCOPE da005313961c proxy-
- 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
- 33 Let's Encrypt リバースプロキシ(手動板)+ GitLab @06_virtualization:05_container
- <code|./conf.d/default.conf> server { server_name example.com; listen 80; listen [::]:80; ... erver { client_max_body_size 100m; server_name gitlab.fl8.jp; access_log /var/log/nginx/acce... network_mode: host networks: proxy-tier: name: proxy-tier </code> ==== 3.一回起動 ==== これでnginxのd... rails['smtp_port'] = 587 gitlab_rails['smtp_user_name'] = "hogehoge@hoge.com" gitlab_rails['smtp_passw
- 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
- 10 Docker Let's Encrypt @06_virtualization:05_container
- tc/nginx/conf.d/default.conf> server { server_name example.com; listen 80; listen [::]:80; ... == NginxでSSL有効化 ===== <code> server { server_name example.com; listen 80; listen [::]:80; ... root /var/www/html; } } server { server_name example.com; listen 443 ssl http2; list
- 34 UnboundでHA構成 @06_virtualization:05_container
- ild: . image: cturra/ntp:latest container_name: ntp restart: always ports: - 123:1... image: mvance/unbound:latest container_name: unbound restart: always ports: ... image: mvance/unbound:latest container_name: unbound restart: always ports:
- 01 VMware ESXi mount @06_virtualization:02_vmware_esxi
- sxcfg-mpath -l | grep -i cd-rom Device Display Name: Local USB CD-ROM (mpx.vmhba32:C0:T0:L0) Device Display Name: Local hp CD-ROM (mpx.vmhba0:C0:T0:L0) </code> =