chilianyi 这个 s2i 应该是在 kubesphere/ks-devops/charts/ks-devops/charts/s2i/crds
kubectl apply -f kubesphere/ks-devops/charts/ks-devops/crds
kubectl apply -f kubesphere/ks-devops/charts/s2i/crds
这两句上面目录发错了,按照代码,目录应该是
kubectl apply -f kubesphere/ks-devops/charts/ks-devops/crds
kubectl apply -f kubesphere/ks-devops/charts/ks-devops/charts/s2i/crds
Usage: helm upgrade [RELEASE] [CHART] [flags]
ks-installer-6697794f55-8dmbz:/kubesphere$ helm upgrade --install devops kubesphere/ks-devops/charts/ks-devops*.tgz -n kubesphere-devops-system -f kubesphere/ks-devops/ks-devops-values.yaml
Release "devops" does not exist. Installing it now.
Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "devops" namespace: "" from "": no matches for kind "CronJob" in version "batch/v1beta1"
ensure CRDs are installed first
ks-installer-6697794f55-8dmbz:/kubesphere$ kubectl apply -f kubesphere/ks-devops/charts/ks-devops/crds
customresourcedefinition.apiextensions.k8s.io/clustersteptemplates.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/clustertemplates.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/devopsprojects.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/gitrepositories.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/pipelineruns.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/pipelines.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/templates.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/applications.gitops.kubesphere.io configured
ks-installer-6697794f55-8dmbz:/kubesphere$ kubectl apply -f kubesphere/ks-devops/charts/ks-devops/charts/s2i/crds
customresourcedefinition.apiextensions.k8s.io/s2ibinaries.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/s2ibuilders.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/s2ibuildertemplates.devops.kubesphere.io configured
customresourcedefinition.apiextensions.k8s.io/s2iruns.devops.kubesphere.io configured
ks-installer-6697794f55-8dmbz:/kubesphere$ rm -rf kubesphere/ks-devops/charts/s2i-templates.yaml
ks-installer-6697794f55-8dmbz:/kubesphere$ helm template kubesphere/ks-devops/charts/ks-devops/charts/s2i/ \
> -f kubesphere/ks-devops/ks-devops-values.yaml \
> -s templates/binary.yaml \
> -s templates/java.yaml \
> -s templates/nodejs.yaml \
> -s templates/python.yaml \
> -s templates/tomcat.yaml > kubesphere/ks-devops/charts/s2i-templates.yaml
Error: could not find template templates/binary.yaml in chart
ks-installer-6697794f55-8dmbz:/kubesphere$
ks-installer-6697794f55-8dmbz:/kubesphere$
ks-installer-6697794f55-8dmbz:/kubesphere$ ll kubesphere/ks-devops/charts/ks-devops/charts/s2i/templates/
bash: ll: command not found
ks-installer-6697794f55-8dmbz:/kubesphere$ ls kubesphere/ks-devops/charts/ks-devops/charts/s2i/templates/
NOTES.txt operator.yaml tests
_helpers.tpl prometheus-servicemonitor.yaml
之前两句执行 OK 了,但是往下执行,还是不行