Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 06 20:07
    Wanderson77 labeled #2529
  • Dec 06 20:07
    Wanderson77 opened #2529
  • Dec 02 22:21
    nettoclaudio synchronize #2528
  • Dec 02 22:00
    nettoclaudio opened #2528
  • Dec 01 09:50

    nettoclaudio on main

    fix(provisioner/kubernetes): pr… (compare)

  • Nov 29 15:22

    arthurcgc on 1.10.3-rc3

    (compare)

  • Nov 26 17:23

    nettoclaudio on support-pdb

    (compare)

  • Nov 26 17:22

    nettoclaudio on main

    feat(provision/kubernetes): sup… (compare)

  • Nov 26 17:22
    nettoclaudio closed #2525
  • Nov 26 17:01
    nettoclaudio synchronize #2525
  • Nov 26 17:01

    nettoclaudio on support-pdb

    feat(provision/kubernetes): sup… test(provision/labels): cover P… fix lint issues :P and 7 more (compare)

  • Nov 26 16:51

    nettoclaudio on main

    fix(app/router): prevent to add… (compare)

  • Nov 26 16:51
    nettoclaudio closed #2527
  • Nov 26 15:07
    nettoclaudio opened #2527
  • Nov 24 23:08

    arthurcgc on 1.10.3-rc2

    (compare)

  • Nov 23 19:11

    arthurcgc on main

    Avoid creation of versioned ser… (compare)

  • Nov 23 19:11
    arthurcgc closed #2526
  • Nov 22 22:41

    nettoclaudio on main

    fix(service-instance): prevent … (compare)

  • Nov 22 22:41
    nettoclaudio closed #2508
  • Nov 22 22:29
    nettoclaudio synchronize #2508
Emerson Rocha
@fititnt

@gleicon Actually thats a great question! I'm not sure if someone else at least tried to replace Kubernetes with K3S to work with Tsuru, but this is something I personally would start testing.

One of my reasons to consider using Kubernetes (or if later is possible, k3s) is that seems to be much easier to deal with strategies to handle files (aka volumes) integrated with Kubernetes (or since is compatible, k3s) than with vanila docker. (even the first reference about k3s is my comment here, https://github.com/tsuru/tsuru/issues/2063#issuecomment-506250179, @gleicon ). I'm not saying that is bad use on vanila docker, just that maybe for usage with bigger setups, or different users, etc, kubernetes could be easier

I will take at least a few weeks to start test with k3s because I'm testing before with Kuberbetes (I'm new here, and also I'm new to Kubernetes), so I'm unable to give a fast response for you about if it works or not with k3s for now. I will leave for someone else that maybe already know Tsuru + Kubernetes to try replace with K3S.

Yehudi Brito
@yehudimikhael
How do I dynamically add auto scaling to the unit?
Magno Torres
@magnotorres
You can use the tsuru autoscale service: https://github.com/tsuru/tsuru-autoscale
Patrezze Alvarenga
@patrezze

Upgrade Tsuru Server from 1.6.2 to 1.7.4

Environment

Docker Version: 19.03.1
Linux Distribution: Ubuntu 16.04 LTS
Kubernetes Cluster: No

The result of tsurud migrate --dry is OK.

Opening config file: /etc/tsuru/tsuru.conf
Done reading config file: /etc/tsuru/tsuru.conf
Using "mongodb" database "tsuru" from the server "mongodb://######".
Running "migrate-apps-kubernetes-crd"... OK
Running "migrate-app-image-exposed-ports"... OK

tsurud migrate

Opening config file: /etc/tsuru/tsuru.conf
Done reading config file: /etc/tsuru/tsuru.conf
Using "mongodb" database "tsuru" from the server "mongodb://######".
Error: multiple errors reported (34):
error #0: no cluster
error #1: no cluster
error #2: no cluster
error #3: no cluster
error #4: no cluster
error #5: no cluster
error #6: no cluster
error #7: no cluster
error #8: no cluster
error #9: no cluster
error #10: no cluster
error #11: no cluster
error #12: no cluster
error #13: no cluster
error #14: no cluster
error #15: no cluster
error #16: no cluster
error #17: no cluster
error #18: no cluster
error #19: no cluster
error #20: no cluster
error #21: no cluster
error #22: no cluster
error #23: no cluster
error #24: no cluster
error #25: no cluster
error #26: no cluster
error #27: no cluster
error #28: no cluster
error #29: no cluster
error #30: no cluster
error #31: no cluster
error #32: no cluster
error #33: no cluster
Running "migrate-apps-kubernetes-crd"...

tsurud migrate-list

The migrate-apps-kubernetes-crd and migrate-app-image-exposed-ports appear as not executed.

+----------------------------------------+------------+-----------+
| Name                                   | Mandatory? | Executed? |
+----------------------------------------+------------+-----------+
| migrate-docker-images                  | true       | true      |
| migrate-pool                           | true       | true      |
| migrate-set-pool-to-app                | true       | true      |
| migrate-service-proxy-actions          | true       | true      |
| migrate-bs-envs                        | true       | true      |
| migrate-events-deploy                  | true       | true      |
| migrate-events-healer                  | true       | true      |
| migrate-rc-events                      | true       | true      |
| migrate-router-unique                  | true       | true      |
| migrate-app-plan-router-to-app-router  | true       | true      |
| migrate-pool-teams-to-pool-constraints | true       | true      |
| migrate-app-service-envs               | true       | true      |
| migrate-app-plan-id-to-plan-name       | true       | true      |
| migrate-roles                          | false      | true      |
| migrate-apps-kubernetes-crd            | true       | false     |
| migrate-app-image-exposed-ports        | true       | false     |
+----------------------------------------+------------+-----------+

I got errors with tsurud migrate. Is it necessary to fix? If I ignore them, does it have any impact?

William Kibira
@willtanium_gitlab

Hello everyone , i've been trying to get tsuru set up on a cluster and when it tries to check for the availability of the Tsuru API the connection fails .
I'm trying to get it to install gandalf in the very first installation

components:
  tsuru:
    config:
      repo-manager: gandalf

I'm using the generic driver for the installation

Deploying tsuru config...
Deploying compose file in cluster manager...
Updating service tsuru_planb (id: 7w6ugx0usv8w4odxijohjs4mj)
Updating service tsuru_registry (id: cie9whbjr3s533e3xc1q71nyb)
Updating service tsuru_tsuru (id: 712oagr7yysncjbhd8pi6isuv)
Updating service tsuru_redis (id: 4uwrmorxpmo0vwb0svgafx2f7)
Updating service tsuru_mongo (id: v5ktthl9j3qhck2swqdnw1lv4)
Waiting for Tsuru API to become responsive at "http://XXX.XXX.XXX.XXX:8080"...
Error: failed to connect to http://XXX.XXX.XXX.XXX:8080: Maximum number of retries (60) exceeded: Get http://XXX.XXX.XXX.XXX:8080: dial tcp XXX.XXX.XXX.XXX:8080: connect: connection refused
I've replaced the IP Address with XXX.XXX.XXX.XXX in the log
Admicro
@admicro
why choose tsuru over flynn?
i'm a new bie, please explain.
Guilherme Rezende
@guilhermebr
@patrezze it's ok since you don't have any kubernetes cluster.
Magno Torres
@magnotorres
@willtanium_gitlab gandalf is just a nice to have command nowadays in tsuru, as we have the command tsuru app-deploy, and you can even deploy a docker image with that (-i). This connect error looks like a ACL/permission missing
Magno Torres
@magnotorres
@admicro talking about tsuru, it's a really stable and powerful PaaS. We attend thousands of critical apps, with a workflow deeply thought to avoid downtime, and dealing automatically with operational issues like restart, container move after problems in the previously host, etc. We use exactly the version available in github (there isn't an enterprise/paid version) and is really easy to extend it with new languages(just a new dockerfile). We manage applications with millions of unique visitors and with really little administrative issues
Nanik
@nanikjava
going through the documentation for running the test https://docs.tsuru.io/stable/contributing/index.html#running-the-tests it says that mongodb and redis need to be installed. Which docker image normally people are using to run mongodb and redis ?
Nanik
@nanikjava
anyone can help with my question ? Thanks
Kasra Fakhari
@kasra73
@nanikjava Hi. Official docker images are most tested and reliable docker images. They start with an underline as namespace in docker hub. For redis database, you can use bitnami image with additional security features.
Nanik
@nanikjava
Thanks @kasra73
will try it out and if it works will submit PR to update the documentation with instruction
Kasra Fakhari
@kasra73
You can also use docker-compose yaml file included in tsuru source code for testing and development purposes.
Nanik
@nanikjava
I've submitted PR to fix this issue tsuru/tsuru#2364 .. PR is tsuru/tsuru#2365
Rodolfo Stangherlin
@rodolfo3
Anyone using tsuru and EKS? I'm an error trying to setup it. I get ec2:CreateInternetGateway You are not authorized to perform this operation running tsuru-eks2 kubernetes --create-data='driver=amazonelasticcontainerservice' --create-data="access-key=*****" --create-data="secret-key=*****" --create-data="region=us-east-1" --pool=eks, but the owner of this key has "ec2:*" permission...
well, it works with "*" permission, but I think this may be insecure...
Rodolfo Stangherlin
@rodolfo3

I'm still trying to add the eks cluster to my tsuru setup. I'm getting the Unauthorized error:

Unauthorized
github.com/tsuru/tsuru/provision/kubernetes.ensureNamespace

I create the cluster using tsuru cluster-add, it works (it is running on aws side), but I got this on logs:

2020/02/03 19:17:38 ERROR: failure running HTTP request POST /1.3/provisioner/clusters (500): error creating clientset: error generating token: NoCredentialProviders: no valid providers in chain. Deprecated.

and the cluster is not on tsuru anymore.

I don't know what am I doing wrong. Any tips to debug this?
or documentation about it?
Luiz Carlos Muniz
@lcmuniz
I installed the tsuru normally and created the dashboard application. After that, every command I give (for example: tsuru app-list) gives an error and the message "Failed to connect to tsuru server is probably down" appears. Can someone help me?
williamkibira
@williamkibira
Hello, i have a situation in which i would like to deploy an image built in the gitlab ci pipeline to a tsuru setup . how do i get the step tsuru app-deploy -a [app-name] -i registry.gitlab.com/[some-domain]/[some-image-name]:latest
with the credentials for login, i have attempted to ssh into the node itself and doing the docker login but that still fails .
Wilson Júnior
@wpjunior
hello @williamkibira you need to use a environment variable (TSURU_TOKEN), running tsuru token-create you will get one of.
williamkibira
@williamkibira

@wpjunior , thank you your for replying to my message , i already am logged in at this point since i do something like in my .gitlab-ci.yml

- yes  $TSURU_PASSWORD | tsuru login $TSURU_EMAIL 
- ssh xxxxxxx@XXX.XXX.XXX.XXX "sudo docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- tsuru app-deploy -i registry.gitlab.com/xxxxxxxx/xxxxxxxi -a demo-application

and in the gitlab ci prompts i get

tsuru app-deploy -i registry.gitlab.com/xxxxxxxx/xxxxxxxi -a demo-application
Deploying image... ok
---- Pulling image to tsuru ----
error in docker node "http://XXX.XXX.XXX.XXX:2376": API error (500): {"message":"Get https://registry.gitlab.com/v2/xxxxx/xxxxx/manifests/latest: denied: access forbidden"}
cyberquarks
@cyberquarks
How do you install a PHP with composer.json in tsuru?
cyberquarks
@cyberquarks

Hi, I'm having a problem running tsuru with Vagrant, I followed the instruction from the documentation but when I do

D:\>tsuru platform-add java
Error: Failed to connect to tsuru server (http://192.168.50.4:8080), it's probably down

How can I know if tsuru is up and running properly?

Yago Sant' Anna
@yagossc
Hello, is there a way to remove all units from an app with a single request?
João Ernesto Arzamendia
@Jarzamendia
There is a way to turn tsuru client more verbose? I'm having some troubles with installation in Centos :D
Wilson Júnior
@wpjunior
Hello @yagossc you could use tsuru app-stop to achieve this
@Jarzamendia you could use tsuru -v2 COMMAND to see debug messages
João Ernesto Arzamendia
@Jarzamendia
Yeah! I tried this command, but the problem are in the Docker machine lib. I'm had to debug with a Docker Machine client to find the problems.
edcous
@edcous
hi
i am new here
cyberquarks
@cyberquarks
Hello is tsuru a "dead" project already? Is it still being maintained?
Guilherme Rezende
@guilhermebr
@cyberquarks tsuru is still active!
cyberquarks
@cyberquarks
@guilhermebr may I ask who is the maintainer of tsuru?
omkarphadke84
@omkarphadke84
Hello I was trying to use tsuru/nginx-tsuru image and I can see the required lua modules in /etc/nginx/modules happy to see that.Is there a way to also install a module which could provide jwt authentication ?
Arthur Silva
@arxdsilva
hi @cyberquarks, tsuru is maintained by a team at globo.com (https://github.com/globocom)
foryah
@foryah:matrix.org
[m]
Hey guys :)
I'm trying to do something in tsuru and I can't find documentation about it. Is this the right place to ask?
fishnux
@fishnux
Hi all, docker-machine is broken and +4 months without resolution, so I can't use Tsuru installer. How can I install Tsuru?
docker/machine#4858
fishnux
@fishnux
There's this workaround passing --engine-install-url "https://releases.rancher.com/install-docker/19.03.9.sh" to docker-machine, but I can't seem to make it work, it installs Docker 20 instead of 19
Kasra Fakhari
@kasra73

Hey guys :)
I'm trying to do something in tsuru and I can't find documentation about it. Is this the right place to ask?

@foryah:matrix.org Hello, you can find tsuru server documents here:
https://docs.tsuru.io/stable/
and tsuru client documentations here:
https://tsuru-client.readthedocs.io/en/latest
I think tsuru community is not big and active like it was years ago, but they answer most questions here and in github issues. I might also can help you if I know about your problem

William Kibira
@willtanium_gitlab

Hello everyone, is there a way to allow the docker registry credentials to be passed on to the tsuru-client when your trying to deploy an application from gitlab registry using the CI_BUILD_TOKEN ?
For example

tsuru app-deploy -i registry.gitlab.com/image-name -a helloworld // <-- This will not work since the ci token cannot be passed over

The CI token being what you pass to it when running the gitlab-ci

sudo docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com  // <-- Something that would give onetime access
mattkirby
@mattkirby
Hi. I see references in tsuru documentation that describe kubernetes as the default provisioner. However, installation documentation describes using the tsuru installer and installing docker machine components. The only reference I can find to installing tsuru in kubernetes is a blog post from 2019, along with a v2 helm chart that does not look to have received updates since. Is anyone using this? Are there any plans to update the getting started or installation documentation?
Jordy Zomer
@JordyZomer
Hi! I was wondering if there's any policy for reporting security issues.
fr3fou
@fr3fou:matrix.org
[m]
hi! I was wondering how active this project is as I'm trying to decide between it and dokku