Problem
When deploying Terraform Enterprise on Podman, the process fails to start with the following error message:
Error: /fdo/kube.yaml: failed to create volume "log": HostPath, ConfigMap, and PersistentVolumeClaim are currently the only supported VolumeSource
Prerequisites
- Terraform Enterprise deployed on Podman.
Cause
The error occurs when the Podman version is lower than 4.3.0. This version is a minimum requirement as outlined in the Terraform Enterprise System Requirements.
You can validate your Podman version by running the podman version command on the virtual machine where the installation failed.
$ podman version Version: 4.2.2
Terraform Enterprise requires Podman v4.3.0 or newer because it uses the emptyDir volume type, which was not supported in earlier versions. The Terraform Enterprise configuration relies on this feature, as shown in the Example Configurations.
volumes:
# ...
- emptyDir:
medium: "Memory"
name: "log"
- emptyDir:
medium: "Memory"
name: "run"
- emptyDir:
medium: "Memory"
name: "tmp"Solution
To resolve this issue, upgrade Podman to version 4.3.0 or newer. Installation and upgrade steps are specific to your operating system and are available in the official Podman documentation.
Outcome
After upgrading Podman to a supported version, the podman kube play <path_to_YAML_file> command completes successfully without returning the error.