Categorygithub.com/outscale-dev/docker-machine-driver-outscale

# README

docker-machine-driver-outscale

Go Report Card GitHub release

Outscale Driver plugin for docker-machine

Install

If you would rather build from source, you will need to have a working go 1.17+ environment,

eval $(go env)
export PATH="$PATH:$GOPATH/bin"

You can then install docker-machine from source by running:

go get github.com/docker/machine
cd $GOPATH/src/github.com/docker/machine
make build

And then compile the docker-machine-driver-outscale driver:

go get github.com/outscale-dev/docker-machine-driver-outscale
cd $GOPATH/src/github.com/outscale-dev/docker-machine-driver-outscale
make install

Run

In order to create a machine, you will need to have you AK/SK . You can find information here: Documentation

docker-machine create -d outscale --outscale-access-key=<outscale-access-key>  --outscale-secret-key=<outscale-secret-key> --outscale-region=<outscale-region> outscale

Options

ArgumentEnvDefaultDescription
outscale-access-keyOUTSCALE_ACCESS_KEY|OSC_ACCESS_KEYNonerequired Outscale Access Key (see here)
outscale-secret-keyOUTSCALE_SECRET_KEY|OSC_SECRET_KEYNonerequired Outscale Secret Key (see here)
outscale-regionOUTSCALE_REGION|OSC_REGIONeu-west-2Outscale Region
outscale-instance-typeOUTSCALE_INSTANCE_TYPEtinav2.c1r2p3 (t2.small)Outscale VM Instance Type (see here)
outscale-source-omiOUTSCALE_SOURCE_OMIami-2cf1fa3e (Debian-10-2021.05.12-3)Outscale Machine Image to use as bootstrap for the VM (see here)
outscale-extra-tags-all``nilExtra tags for all created resources. Format "key=value". Can be set multiple times
outscale-extra-tags-instances``nilExtra tags only for instances. Format "key=value". Can be set multiple times
outscale-security-group-ids``nilIds of user defined Security Groups to add to the machine. Can be set multiple times
outscale-root-disk-type``gp2Type of volume for the root disk ('standard', 'io1' or 'gp2')
outscale-root-disk-size``15Size of the root disk in GB (> 0)
outscale-root-disk-iops``1500Iops for the io1 root disk type (ignore if it is not io1). Value between 1 and 13000.
outscale-subnet-id````Id of the Net use to create all resources when a private network is requested.
outscale-kubernetes-node-name-autotag``falseAutomatically add kubernetes tag 'OscK8sNodeName' to the instance (Useful for the CCM).

Security group

If no Security group is provided, a security group will be created with theses rules

TypeProtocolFrom PortTo PortCIDRDescription
InboundTCP22220.0.0.0/0SSH
InboundTCP80800.0.0.0/0nginx Ingress Http
InboundTCP4434430.0.0.0/0nginx Ingress Https
InboundTCP237623760.0.0.0/0Docker daemon
InboundTCP237923800.0.0.0/0ETCD (client request and peer communication)
InboundTCP644364430.0.0.0/0Kube-api
InboundTCP10250102500.0.0.0/0Kubelet
InboundTCP10251102510.0.0.0/0Kube-scheduler
InboundTCP10252102520.0.0.0/0Kube-controller-manager
InboundTCP10256102560.0.0.0/0Kube-proxy
InboundTCP30000327670.0.0.0/0Node port
InboundUDP30000327670.0.0.0/0Node port
InboundUDP847284720.0.0.0/0Canal/Flannel overlay
InboundUDP478947890.0.0.0/0Canal/Flannel overlay

In the example section, there are some exampe of minimal Security Group preprovisionned for different use-cased:

Debugging

Detailed run output will be emitted when using the docker-machine --debug option.

docker-machine --debug  create -d outscale --outscale-access-key=<outscale-access-key>  --outscale-secret-key=<outscale-secret-key> --outscale-region=<outscale-region> outscale

License

Copyright Outscale SAS

BSD-3-Clause

This project is compliant with REUSE.

# Packages

No description provided by the author