kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraMounts:
- hostPath: /Users/YOURNAME/lab/kind
containerPath: /home/kind
extraPortMappings:
## expose port 31080 of the node to port 80 on the host
helm template <CHART_NAME> <REPO_NAME>/<PATH_TO_CHART>
- example -
helm template nginx-ingress nginx/nginx-ingress
helm template validator-1 ./charts/goquorum-node --namespace quorum --values ./values/validator.yml --debug > test.yaml
copy a file from local filesystem into a container:
cat [local file path] | kubectl exec -i -n [namespace] [pod] -c [container] "--" sh -c "cat > [remote file path]"
ex:
cat keycloak-benchmark-dataset-0.10-SNAPSHOT.jar | k exec -i pods/keycloak-65f866dc7b-2kpn5 "--" sh -c "cat > /opt/keycloak/providers/keycloak-benchmark-dataset-0.10-SNAPSHOT.jar"
QEMU version: 2.2.0
HDD init: qemu-img create -f qcow debian8-arm64.img 10G
Netinstall initrd: http://ftp.ru.debian.org/debian/dists/jessie/main/installer-arm64/20150107/images/netboot/debian-installer/arm64/initrd.gz
Netinstall kernel: wget http://ftp.ru.debian.org/debian/dists/jessie/main/installer-arm64/20150107/images/netboot/debian-installer/arm64/linux
Netinstall start:
qemu-system-aarch64 -machine virt -cpu cortex-a57 -nographic -smp 1 -m 512 -kernel linux -initrd initrd.gz -append "root=/dev/ram console=ttyAMA0" -global virtio-blk-device.scsi=off -device virtio-scsi-device,id=scsi -drive file=debian8-arm64.img,id=rootimg,cache=unsafe,if=none -device scsi-hd,drive=rootimg -netdev user,id=unet -device virtio-net-device,netdev=unet -net user
Get Docker up and running on the RaspberryPi (ARMv6) in four steps
Failed to start docker.service: Unit docker.service is masked.
systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service
If you got the message,
WARNING: Your kernel does not support cgroup swap limit. WARNING: Your
#Docker image save/load by SSH From Easily transfer docker images between two machines over the network
docker save busybox:latest | ssh -i ~/philipz/key.pem XXXX@192.168.2.18 'docker load'
#Docker-machine First, use $(docker-machine env XXXXX) to get control env parameter. Then you can use docker access remote cloud machine.
docker save busybox:latest | ssh -i ~/.docker/machine/machines/azdocker2/id_rsa ubuntu@azdocker2.cloudapp.net sudo docker load
package api;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class Exec {
- VM increasing the size of Disk.
sudo fdisk -l
確認是否已經DISK空間是否擴增。sudo fdisk /dev/sda
[root@localhost ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them. Be careful before using the write command.