diff --git a/diario-de-bordo/delta.sh b/diario-de-bordo/delta.sh index c114dbd..867b4cb 100644 --- a/diario-de-bordo/delta.sh +++ b/diario-de-bordo/delta.sh @@ -120,6 +120,51 @@ sudo cat /root/.ssh/authorized_keys # Setting Docker configuration on the remote daemon... \n Error running SSH command: ssh command error: \n command : netstat -tln \n err : exit status 127 \n output : bash: netstat: command not found sudo apt install net-tools +#------------------------------------------------------------------------------# +# SEÇÃO TSURU: SISTEMA DE ARQUIVOS / VOLUME POR CONTEINER # +# # +#------------------------------------------------------------------------------# +# @see https://github.com/EticaAI/aguia-pescadora/issues/20 +# @see https://www.youtube.com/watch?time_continue=4&v=WnVAS1raRik +# @see https://github.com/rexray/rexray +# @see http://rexray.io/ + +cd /root + +## Visualize qual resultado do destino antes de instalar +# curl -sSL https://rexray.io/install + +curl -sSL https://rexray.io/install | sh +## root@aguia-pescadora-1:~# curl -sSL https://rexray.io/install | sh +## Selecting previously unselected package rexray. +## (Reading database ... 69675 files and directories currently installed.) +## Preparing to unpack rexray_0.11.4-1_amd64.deb ... +## Unpacking rexray (0.11.4-1) ... +## Setting up rexray (0.11.4-1) ... +## +## rexray has been installed to /usr/bin/rexray +## +## REX-Ray +## ------- +## Binary: /usr/bin/rexray +## Flavor: client+agent+controller +## SemVer: 0.11.4 +## OsArch: Linux-x86_64 +## Commit: e7414eaa971b27977d2283f2882825393493179d +## Formed: Tue, 15 Jan 2019 16:03:57 UTC + +## @see https://blog.openebs.io/why-are-users-using-openebs-on-ebs-9b38fb04cd35 + +## TODO: resolver requisitos antes de implementar isto +vim /etc/tsuru/tsuru.conf +# Adicione o seguinte ao final do arquivo +## +##volume-plans: +## ebs: +## swarm: +## driver: rexray/ebs + #kubernetes: + # storage-class: my-ebs-storage-class #------------------------------------------------------------------------------# # SEÇÃO NGINX & HTTPS: # diff --git a/diario-de-bordo/delta/etc/tsuru/tsuru.conf b/diario-de-bordo/delta/etc/tsuru/tsuru.conf new file mode 100644 index 0000000..e20651a --- /dev/null +++ b/diario-de-bordo/delta/etc/tsuru/tsuru.conf @@ -0,0 +1,62 @@ +auth: + hash-cost: 4 + token-expire-days: 2 + user-registration: true +database: + name: tsuru + url: $MONGODB_ADDR:$MONGODB_PORT +docker: + auto-scale: + enabled: true + run-interval: $DOCKER_AUTOSCALE_RUN_INTERVAL + bs: + socket: /var/run/docker.sock + cluster: + mongo-database: cluster + mongo-url: $MONGODB_ADDR:$MONGODB_PORT + storage: mongodb + collection: docker + deploy-cmd: /var/lib/tsuru/deploy + registry: $REGISTRY_ADDR:$REGISTRY_PORT + repository-namespace: tsuru + router: hipache + run-cmd: + bin: /var/lib/tsuru/start + port: "8888" + tls: + root-path: /certs +host: $TSURU_ADDR:8080 +iaas: + dockermachine: + ca-path: /certs + insecure-registry: $REGISTRY_ADDR:$REGISTRY_PORT + docker-flags: experimental +listen: 0.0.0.0:8080 +log: + disable-syslog: true + use-stderr: true +provisioner: docker +queue: + mongo-database: queuedb + mongo-url: $MONGODB_ADDR:$MONGODB_PORT +quota: + apps-per-user: 2 + units-per-app: 4 +repo-manager: none +routers: + hipache: + domain: $HIPACHE_DOMAIN + redis-server: $REDIS_ADDR:$REDIS_PORT + type: hipache +tls: + cert-file: /certs/cert.pem + key-file: /certs/key.pem +use-tls: false + +# @see https://github.com/EticaAI/aguia-pescadora/issues/20 +#volume-plans: +# ebs: +# swarm: +# driver: rexray/ebs +# #kubernetes: +# # storage-class: my-ebs-storage-class \ No newline at end of file