git clone https://gerrit.googlesource.com/k8s-gerrit
cd k8s-gerrit
kubectl create ns gerrit-operator
helm dependency build helm-charts/gerrit-operator/
helm -n gerrit-operator install gerrit-operator helm-charts/gerrit-operator/
kubectl create ns nfs
helm repo add nfs-ganesha-server-and-external-provisioner \
https://kubernetes-sigs.github.io/nfs-ganesha-server-and-external-provisioner/
helm upgrade \
--install nfs \
nfs-ganesha-server-and-external-provisioner/nfs-server-provisioner \
-n nfs
kubectl create ns gerrit
kubectl apply -f Documentation/examples/gerrit.secret.yaml
kubectl apply -f Documentation/examples/1-gerritcluster.yaml
Create gerrit-ingress.yaml file to generate an ingress to the Web UI.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gerrit-ingress
spec:
rules:
- host: "gerrit.192.168.39.72.nip.io"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gerrit-service
port:
number: 80
kubectl apply -f gerrit-ingress.yaml -n gerrit