Task #5061
closed
Task #5069: Build pulp 3 containers
Develop a script to launch pulp containers with k3s, for CI
Description
In order to enable CI testing Pulp in containers, we need a script to launch them (and handle the shared variables and all between them) with docker/podman, rather than a K8s operator.
- Parent issue changed from #5004 to #5069
- Status changed from NEW to ASSIGNED
k3s (lightweight Kubernetes) with our operator might be a better alternative for the Travis CI needs:
https://k3s.io/
- Sprint changed from Sprint 55 to Sprint 56
- % Done changed from 0 to 70
I decided to use k3s instead.
I am mostly done. I've had to resolve lots of medium-size issues, like registry.centos.org not working with k3s, k3s not having a storage plugin, and establishing proper checks for the containers being deployed successfully.
https://github.com/mikedep333/pulp-operator/tree/k3s-travis
I've been talking a lot with dkilban and mmello. mmello has been wanting k3s compatibility.
- % Done changed from 70 to 90
The reasoning for using k3s are:
1. It improves the CI for pulp-operator itself.
2. It is less work to adapt pulp-operator for k3s than to write & maintain new a big script that needs features like configmaps.
3. Users like mmello want k3s support anyway.
4. I did not know about k3s at the time I wrote this issue.
- Status changed from ASSIGNED to POST
- Status changed from POST to MODIFIED
- % Done changed from 90 to 100
- Status changed from MODIFIED to 5
- Subject changed from Develop a script to launch 4 pulp containers in just Docker/Podman to Develop a script to launch pulp containers with k3s, for CI
- Status changed from 5 to CLOSED - COMPLETE
Also available in: Atom
PDF
Have Travis use k3s to test the containers.
Test basic Pulp functionality, including writing to disk Using pulp_file's sync tests.
Also, don't set CONTENT_HOST in the pulp-server ConfigMap. If set incorrectly, it causes pulp_file test scripts to fail. We haven't implemented querying it via the K8s APIs, or having users specify it yet.
Note that the RequestsDependencyWarning messages from httpie are annoying output, but pip3 is not on Ubuntu on Travis. It appears that Travis relies on the virtual env for Python3
fixes #5061 https://pulp.plan.io/issues/5061