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 apply -k kind/cluster --server-side
|
||||||
kubectl --namespace ingress-nginx rollout status --timeout 5m deployment/ingress-nginx-controller
|
kubectl --namespace ingress-nginx rollout status --timeout 5m deployment/ingress-nginx-controller
|
||||||
kubectl --namespace metallb-system rollout status --timeout 5m deployment 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
|
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 apply -f kind/cluster/coredns/custom-dns.yaml
|
||||||
kubectl -n kube-system rollout restart deployment/coredns
|
kubectl -n kube-system rollout restart deployment/coredns
|
||||||
@ -32,8 +31,7 @@ docker-secret:
|
|||||||
docker login reg.cadoles.com
|
docker login reg.cadoles.com
|
||||||
mkdir -p kustomization/base/tekton/secret/dockerconfig
|
mkdir -p kustomization/base/tekton/secret/dockerconfig
|
||||||
docker --config kustomization/base/tekton/secret/dockerconfig login reg.cadoles.com
|
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-pipelines
|
||||||
kubectl create secret generic regcred --from-file=config.json=kustomization/base/tekton/secret/dockerconfig/config.json -n tekton
|
|
||||||
kubectl patch cm feature-flags -n tekton-pipelines -p '{"data":{"enable-api-fields":"alpha"}}'
|
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)
|
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
|
delete-cluster: ## Supprime le cluster kubernetes Kind
|
||||||
kind delete clusters tekton
|
kind delete clusters tekton
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.mktools:
|
.mktools:
|
||||||
rm -rf .mktools
|
rm -rf .mktools
|
||||||
curl -q https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/install.sh | $(SHELL)
|
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
|
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
|
#### 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/git-secret.yaml`
|
||||||
- `kustomization/base/tekton/secret/ssh-secret.yaml`
|
- `kustomization/base/tekton/secret/ssh-secret.yaml`
|
||||||
- `kustomization/base/tekton/secret/gitea-access-token.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
|
make docker-secret
|
||||||
```
|
```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
kind: Cluster
|
kind: Cluster
|
||||||
apiVersion: kind.x-k8s.io/v1alpha4
|
apiVersion: kind.x-k8s.io/v1alpha4
|
||||||
name: tekton
|
name: tekton-pipelines
|
||||||
nodes:
|
nodes:
|
||||||
- role: control-plane
|
- role: control-plane
|
||||||
image: kindest/node:v1.27.2
|
image: kindest/node:v1.27.2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: tekton
|
namespace: tekton-pipelines
|
||||||
resources:
|
resources:
|
||||||
- namespace/namespace.yaml
|
- namespace/namespace.yaml
|
||||||
- secret/git-secret.yaml
|
- secret/git-secret.yaml
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: tekton
|
name: tekton-pipelines
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: skaffold/v3
|
|||||||
kind: Config
|
kind: Config
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: tekton
|
name: tekton-pipelines
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
kustomize:
|
kustomize:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user