EOSC-synergy / SQAaaS

6 stars 1 forks source link

K8s cluster deployment at INCD #69

Closed orviz closed 2 years ago

orviz commented 2 years ago

JePL-k8s-test to be working on Wed 14th

samuelbernardolip commented 2 years ago

Not directly related with this task, I found several issues in current Jenkins release that could address most of the problems reported. I'm still finishing the tests for JePL-k8s-test regarding Jenkinsfile. Then I need to test with SQAaaS API and Web.

samuelbernardolip commented 2 years ago

The pipeline is working now, the only issue is related to the wordpress example code, since no service is being started: https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/JePL-k8s-test/job/feature%252Fserviceqa/26/console

Maybe some environment variable needed to start the containers.

samuelbernardolip commented 2 years ago

Working now using credentials and with all security issues solved: https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/JePL-k8s-test/job/feature%252Fserviceqa/31/console

Deployment is failing because of missing configuration from wordpress example side.

samuelbernardolip commented 2 years ago

Besides kubectl, also need to do the same test using helm chart: https://github.com/bitnami/charts/tree/master/bitnami/wordpress

samuelbernardolip commented 2 years ago

kubectl deployment is failing because the pods are not being created. No issue on current configurations. Maybe missing resources on current k8s cluster... https://kubernetes.io/docs/tasks/debug/debug-application/_print/

samuelbernardolip commented 2 years ago

kubectl deployment working now: https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/JePL-k8s-test/job/feature%252Fserviceqa/34/console

Previous deployment issues was related to inconsistencies on kubernetes cluster state. After solving the issues on kubernetes side, the kubectl deployment start working as expected.

Moving now to helm deployment, creating a new repository for the test based on this one.

samuelbernardolip commented 2 years ago

Add test for helm chart: https://github.com/EOSC-synergy/JePL-helm-test

With helm it gets the configuration examples from the helm chart repository and this way the code on the test repository is lighter then on the kubectl examples. It is also possible to run helm charts from local files, but that is not covered on this test.

samuelbernardolip commented 2 years ago

Deployment fails because helm chart tries to obtain an external IP but that is not possible because current Openstack installation don't provide Octavia module. The deployment task is complete for kubectl and helm.