This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
It doesn't work in swarm when i use compose to deploy #4
Comments
Hello,
Thanks for bringing this to my attention.
Can you please give me some background info:
1. Is this a multi-node swam cluster?
a. If it is, can you please tell me if all the nodes have the plugin installed?
2. If you are using the papertrail plugin, you will need to pass in the url. You have not included it in the sample. Can I presume you have it set to the right value in your env but just have not shared it here for security reasons?
Thank you!
… On Jul 31, 2018, at 3:22 AM, mmpyro ***@***.***> wrote:
Below I have presented compose file which was used for deploy.
I have used docker stack deploy --compose-file docker-compose.yml test comamnd
When I run container it work fine but with swarm it doesn't.
version: "3.1"
services:
service:
image: alpine
command: /bin/sh -c "while true; do echo 'Hello world'; sleep 1s; done"
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
delay: 10s
max_attempts: 5
window: 120s
logging:
driver: solarwinds/papertrail-plugin
options:
papertrail-url: ":"
papertrail-token: ""
networks:
default:
external:
name: internal
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#4>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AeNTDY-uJhXkqagO37LHgP9FTzfogoHsks5uMAWwgaJpZM4VnusA>.
|
HI,
I have tried for a single node swarm and plugin was installed. I have
removed url and token for secure reason. I have used the same url and port
which was used for pm2 papertrail plugin and for pm2 it worked.
Plugin works for single odkcer instance but not for swarm. Moreover I
didn't use default network.
Regards,
Michal Marszalek
On 1 August 2018 at 21:08, girishranganathan <[email protected]>
wrote:
… Hello,
Thanks for bringing this to my attention.
Can you please give me some background info:
1. Is this a multi-node swam cluster?
a. If it is, can you please tell me if all the nodes have the plugin
installed?
2. If you are using the papertrail plugin, you will need to pass in the
url. You have not included it in the sample. Can I presume you have it set
to the right value in your env but just have not shared it here for
security reasons?
Thank you!
> On Jul 31, 2018, at 3:22 AM, mmpyro ***@***.***> wrote:
>
> Below I have presented compose file which was used for deploy.
> I have used docker stack deploy --compose-file docker-compose.yml test
comamnd
> When I run container it work fine but with swarm it doesn't.
>
> version: "3.1"
>
> services:
> service:
> image: alpine
> command: /bin/sh -c "while true; do echo 'Hello world'; sleep 1s; done"
> deploy:
> mode: replicated
> replicas: 1
> update_config:
> parallelism: 1
> delay: 10s
> restart_policy:
> condition: any
> delay: 10s
> max_attempts: 5
> window: 120s
> logging:
> driver: solarwinds/papertrail-plugin
> options:
> papertrail-url: ":"
> papertrail-token: ""
>
> networks:
> default:
> external:
> name: internal
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub <https://github.com/
solarwinds/docker-plugin-papertrail#4>, or mute the thread <
https://github.com/notifications/unsubscribe-auth/AeNTDY-
uJhXkqagO37LHgP9FTzfogoHsks5uMAWwgaJpZM4VnusA>.
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGQ5FDB-zI3RrLYvGA8HTmvdBCyi0fk1ks5uMfy4gaJpZM4VnusA>
.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Below I have presented compose file which was used for deploy.
I have used docker stack deploy --compose-file docker-compose.yml test comamnd
When I run container it work fine but with swarm it doesn't.
version: "3.1"
services:
service:
image: alpine
command: /bin/sh -c "while true; do echo 'Hello world'; sleep 1s; done"
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
delay: 10s
max_attempts: 5
window: 120s
logging:
driver: solarwinds/papertrail-plugin
options:
papertrail-url: ":"
papertrail-token: ""
networks:
default:
external:
name: internal
The text was updated successfully, but these errors were encountered: