version: '3.4' services: netbox: &netbox image: docker.io/netboxcommunity/netbox:${VERSION-v3.5-2.6.1} depends_on: - postgres - redis - redis-cache env_file: env/netbox.env user: 'unit:root' healthcheck: start_period: 60s timeout: 3s interval: 15s test: "curl -f http://localhost:8080/api/ || exit 1" volumes: - ./configuration:/etc/netbox/config:z,ro - netbox-media-files:/opt/netbox/netbox/media:z,rw - netbox-reports-files:/opt/netbox/netbox/reports:z,rw - netbox-scripts-files:/opt/netbox/netbox/scripts:z,rw … … Netbox の docker-compose.yml $ katenary convert -f docker-compose.yml … … 📝 Generating configMap from env/netbox.env 📝 Generating configMap from env/netbox.env You cannot, at this time, have local volume in netbox deployment You cannot, at this time, have local volume in netbox deployment You cannot, at this time, have local volume in netbox deployment ⚡ Generate volume values netboxmediafiles for container named netbox in deployment netbox Error while getting port for service redis いきなりエラー redisのポートを指定しないといけないらし い
• docker-compose.yml は変換のために事前に修正する必要がある redis: image: redis:7-alpine command: - sh - -c # this is to evaluate the $REDIS_PASSWORD from the env - redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose env_file: env/redis.env volumes: - netbox-redis-data:/data labels: katenary.io/ports: 6379 … redis, postgresなどにlabelsを明記す る必要がある
あくまで補助ツール 惜しいところはあるけど、悪くない印象を感じた Important Note: Katenary is a tool to help to build Helm Chart from a docker-compose file, but docker-compose doesn't propose as many features as what can do Kubernetes. So, we strongly recommend to use Katenary as a "bootstrap" tool and then to manually enhance the generated helm chart.