Hello, dear visitors of my topic. I am junior devops with different task for my level of qualification.
I need help with the concept of how to integrate k0smotron with ci/cd.
Idea: automate creation, management, deletion of clusters with k0smotron CRDs and ci/cd.
I created cluster for ci/cd:
- apiVersion: k0smotron.io/v1beta1
kind: Cluster
metadata:
name: ci-cd-cluster
spec:
ci-cd settings
And added job ci/cd for specific cluster:
jobs:
- name: Deploy-to-Kubernetes
uses: my-repo/kube-deploy-action@v1
with:
cluster: ci-cd-cluster
namespace: production
manifests: ./k8s
But, I need to build complex system which will take variables as name of cluster, specs and so on. Of course, we can specify all specs in one ci/cd variable of gitlab ci/cd, but is there better solution?
How to do it? I don’t ask for full solution, just a direction, hints where to go and what to consider about