echoing-oil-42947
09/22/2023, 9:30 PMerror: 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:
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},
);
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by