In OCP environment, we are experiencing an issue where the VSE pod vse1 is displaying a create container config error and cannot be redeployed. This problem occurred from accidentally deleting the vse1 pod and subsequently deploying a new pod, vse-01, using a Harness deployment, which has likely led to a naming convention conflict and orphaned resources. Our goal is to resolve this configuration error, successfully recreate vse1, and delete vse-01.
DevTest 10.9.0 Images in OCP environment
Deleting a **StatefulSet** in Kubernetes/OpenShift does not automatically remove all associated resources, such as headless Services or pods that are already in a specific lifecycle state. If a deployment is recreated with conflicting names or via different deployment tools (e.g., Harness vs. Helm) before the original objects are fully purged, the cluster may retain orphaned pods in an 'orphaned' or 'orphaned-but-running' state.
The orphaned objects were cleared by deleting the StatefulSet without terminating active pods.
kubectl delete statefulsets <name> -n <namespace>.vse1 and removing the accidental vse-01 deployment.