Has anybody run into something like this when atte...
# general
e
Has anybody run into something like this when attempting to make a docker service have more than one replica?
Copy code
error: docker:index/service:Service resource 'prefect-worker' has a problem: Conflicting configuration arguments: "mode.0.replicated": conflicts with mode.0.global. Examine values at 'prefect-worker.mode.0.replicated'.
This is the resource in question:
Copy code
this.service = new docker.Service(
            "prefect-worker",
            {
                taskSpec: {
                    containerSpec: {
                        image: "prefecthq/prefect:2-latest", // TODO: SHA,
                        commands:
                            "prefect agent start -p default-agent-pool".split(
                                " ",
                            ),
                        env: {
                            PREFECT_API_URL: `https://${hostname}/api`,
                            PREFECT_API_DATABASE_CONNECTION_URL: pulumi
                                .all([
                                    this.db.name,
                                    this.db.root.username,
                                    this.db.root.password,
                                    args.pg.hostname,
                                    args.pg.port,
                                ])
                                .apply(
                                    ([$db, $user, $pass, $host, $port]) =>
                                        `postgresql+asyncpg://${$user}:${$pass}@${$host}:${$port}/${$db}`,
                                ),
                        },
                    },
                    logDriver: LogDriver("Prefect", ServiceCategory.DATA_TOOL),
                    networksAdvanceds: [
                        {name: args.pg.networkId},
                        {name: args.ingress.networkId},
                    ],

                },
                mode: {
                    replicated: {
                        replicas: 4
                    }
                }
            },
            {parent: this},
        );