Skip to content

HaProxy version 3.3 // Data Plan API example fails // "program api" statement not available #13

@to-s

Description

@to-s

docker compose:

services:
    haproxy:
        image: haproxytech/haproxy-ubuntu:3.3
        ports:
            - 5555:5555
        volumes:
            - "./haproxy/:/etc/haproxy/"
        working_dir: /usr/local/etc/haproxy

haproxy configuration:

global
  expose-deprecated-directives # uncomment for use with haproxy version 3.1 / 3.2

userlist haproxy-dataplaneapi
  user admin insecure-password mypassword

program api
  command /usr/bin/dataplaneapi --host 0.0.0.0 --port 5555 --haproxy-bin /usr/sbin/haproxy --config-file /usr/local/etc/haproxy/haproxy.cfg --reload-cmd "kill -SIGUSR2 1" --restart-cmd "kill -SIGUSR2 1" --reload-delay 5 --userlist haproxy-dataplaneapi
  no option start-on-reload

resulting in some alerts during startup of haproxy:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions