update doc
This commit is contained in:
parent
14e58640c8
commit
64b5086ec8
6
Makefile
6
Makefile
@ -20,7 +20,6 @@ setup-cluster:
|
||||
kubectl apply -k kind/cluster --server-side
|
||||
kubectl --namespace ingress-nginx rollout status --timeout 5m deployment/ingress-nginx-controller
|
||||
kubectl --namespace metallb-system rollout status --timeout 5m deployment controller
|
||||
|
||||
sed -i "/mse.dev.local/ s/.*/ $(BASEIP)\tmse.dev.local/g" kind/cluster/coredns/custom-dns.yaml
|
||||
kubectl apply -f kind/cluster/coredns/custom-dns.yaml
|
||||
kubectl -n kube-system rollout restart deployment/coredns
|
||||
@ -32,8 +31,7 @@ docker-secret:
|
||||
docker login reg.cadoles.com
|
||||
mkdir -p kustomization/base/tekton/secret/dockerconfig
|
||||
docker --config kustomization/base/tekton/secret/dockerconfig login reg.cadoles.com
|
||||
# mv kustomization/base/tekton/secret/dockerconfig/config.json kustomization/base/tekton/secret/dockerconfig/.dockerconfigjson
|
||||
kubectl create secret generic regcred --from-file=config.json=kustomization/base/tekton/secret/dockerconfig/config.json -n tekton
|
||||
kubectl create secret generic regcred --from-file=config.json=kustomization/base/tekton/secret/dockerconfig/config.json -n tekton-pipelines
|
||||
kubectl patch cm feature-flags -n tekton-pipelines -p '{"data":{"enable-api-fields":"alpha"}}'
|
||||
|
||||
deploy-dev: ## Déploie le projet dans le cluster (nécessite la variable $HARBOR_USER_NAME)
|
||||
@ -42,8 +40,6 @@ deploy-dev: ## Déploie le projet dans le cluster (nécessite la variable $HARBO
|
||||
delete-cluster: ## Supprime le cluster kubernetes Kind
|
||||
kind delete clusters tekton
|
||||
|
||||
|
||||
|
||||
.mktools:
|
||||
rm -rf .mktools
|
||||
curl -q https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/install.sh | $(SHELL)
|
||||
|
11
README.md
11
README.md
@ -11,14 +11,19 @@ make create-cluster
|
||||
skaffold dev --cleanup=false
|
||||
```
|
||||
|
||||
Si vous disposez déjà d'un environnement kubernetes, appliquez uniquement les CRDs :
|
||||
|
||||
```
|
||||
kubectl apply -k kind/cluster --server-side
|
||||
```
|
||||
|
||||
#### Préparer les secrets
|
||||
Créer les fichiers :
|
||||
Créer les fichiers en renseignant et en copiant les fichiers `.dist` correspondants:
|
||||
- `kustomization/base/tekton/secret/git-secret.yaml`
|
||||
- `kustomization/base/tekton/secret/ssh-secret.yaml`
|
||||
- `kustomization/base/tekton/secret/gitea-access-token.yaml`
|
||||
en renseignant et en copiant les fichier `.dist` correspondants
|
||||
|
||||
Généré le secret docker
|
||||
Générer le secret docker
|
||||
```
|
||||
make docker-secret
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
kind: Cluster
|
||||
apiVersion: kind.x-k8s.io/v1alpha4
|
||||
name: tekton
|
||||
name: tekton-pipelines
|
||||
nodes:
|
||||
- role: control-plane
|
||||
image: kindest/node:v1.27.2
|
||||
|
@ -1,6 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: tekton
|
||||
namespace: tekton-pipelines
|
||||
resources:
|
||||
- namespace/namespace.yaml
|
||||
- secret/git-secret.yaml
|
||||
|
@ -1,4 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: tekton
|
||||
name: tekton-pipelines
|
||||
|
@ -2,7 +2,7 @@ apiVersion: skaffold/v3
|
||||
kind: Config
|
||||
|
||||
metadata:
|
||||
name: tekton
|
||||
name: tekton-pipelines
|
||||
|
||||
manifests:
|
||||
kustomize:
|
||||
|
Loading…
x
Reference in New Issue
Block a user