Closed scheung38 closed 1 year ago
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
@scheung38 Adding this attribute to the labels section should solve your problem:
kompose.service.healthcheck.readiness.test: curl -f http://10.8.38.101:8080/health/ping
This is my production.yml file
I do have healthcheck in django defined:
or I didn't define the proper URL?
kompose --file production.yml -o my_kubectl convert
panic: Health check must contain a command
goroutine 1 [running]: github.com/kubernetes/kompose/pkg/transformer/kubernetes.configProbe({{0x0, 0x0, 0x0}, 0x258, 0xa, 0x5, 0x1e, 0x0, {0x0, 0x0}, ...}) github.com/kubernetes/kompose/pkg/transformer/kubernetes/podspec.go:289 +0x630 github.com/kubernetes/kompose/pkg/transformer/kubernetes.(Kubernetes).UpdateKubernetesObjects.func1(0x14000501328) github.com/kubernetes/kompose/pkg/transformer/kubernetes/k8sutils.go:539 +0x5d0 github.com/kubernetes/kompose/pkg/transformer/kubernetes.(Kubernetes).UpdateController(0x140002972c0, {0x1014f8798, 0x14000501200}, 0x1400069d800, 0x1400069d7f0) github.com/kubernetes/kompose/pkg/transformer/kubernetes/kubernetes.go:1569 +0x2c4 github.com/kubernetes/kompose/pkg/transformer/kubernetes.(Kubernetes).UpdateKubernetesObjects(0x140002972c0, {0x1400003a328, 0x6}, {{0x140003d0e68, 0x6}, {0x14000402aa0, 0x1c}, {0x140002cef80, 0x3b}, {0x140005e4400, ...}, ...}, ...) github.com/kubernetes/kompose/pkg/transformer/kubernetes/k8sutils.go:632 +0x66c github.com/kubernetes/kompose/pkg/transformer/kubernetes.(Kubernetes).Transform(0x140002972c0, {0x1400027f470, {0x1011bcf11, 0x7}, 0x1400027f0b0}, {0x0, 0x1, 0x0, 0x0, 0x1, ...}) github.com/kubernetes/kompose/pkg/transformer/kubernetes/kubernetes.go:1548 +0x9ac github.com/kubernetes/kompose/pkg/app.Convert({0x0, 0x1, 0x0, 0x0, 0x1, {0x0, 0x0}, {0x0, 0x0}, {0x1011bb7d7, ...}, ...}) github.com/kubernetes/kompose/pkg/app/app.go:226 +0x34c github.com/kubernetes/kompose/cmd.glob..func3(0x101bc8d60, {0x140002fd3c0, 0x0, 0x4}) github.com/kubernetes/kompose/cmd/convert.go:130 +0x4c github.com/spf13/cobra.(Command).execute(0x101bc8d60, {0x140002fd380, 0x4, 0x4}) github.com/spf13/cobra@v1.1.3/command.go:856 +0x640 github.com/spf13/cobra.(Command).ExecuteC(0x101bc8fe0) github.com/spf13/cobra@v1.1.3/command.go:960 +0x404 github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/cobra@v1.1.3/command.go:897 github.com/kubernetes/kompose/cmd.Execute(...) github.com/kubernetes/kompose/cmd/root.go:89 main.main() github.com/kubernetes/kompose/main.go:27 +0x30
kompose version 1.27.0 (HEAD)
Docker version
Client: Docker Engine - Community Version: 20.10.23 API version: 1.41 Go version: go1.19.5 Git commit: 715524332f Built: Wed Jan 18 20:42:16 2023 OS/Arch: darwin/arm64 Context: default Experimental: true
Server: Docker Desktop 4.16.2 (95914) Engine: Version: 20.10.22 API version: 1.41 (minimum version 1.12) Go version: go1.18.9 Git commit: 42c8b31 Built: Thu Dec 15 22:25:43 2022 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.14 GitCommit: 9ba4b250366a5ddde94bb7c9d1def331423aa323 runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0