64 lines
1.5 KiB
Markdown
64 lines
1.5 KiB
Markdown
## gitea
|
|
|
|
```bash
|
|
# gitea install
|
|
helm repo add gitea-charts https://dl.gitea.com/charts/
|
|
helm upgrade --install gitea gitea-charts/gitea -n gitea --values gitea-values.yaml
|
|
```
|
|
|
|
|
|
## ingress
|
|
```bash
|
|
# istio
|
|
# based on: https://tetrate.io/blog/istio-ingressclass-controller-with-helm/
|
|
helm repo add istio https://istio-release.storage.googleapis.com/charts
|
|
helm repo update
|
|
|
|
kubectl create ns istio-system
|
|
# this installs only serviceAccount and webhook
|
|
helm install istio-base istio/base -n istio-system
|
|
|
|
helm upgrade --install istiod istio/istiod -n istio-system \
|
|
--set meshConfig.ingressSelector=istio-ingress \
|
|
--set meshConfig.ingressService=istio-ingress \
|
|
--set pilot.env.K8S_INGRESS_NS=istio-ingress
|
|
|
|
kubectl create ns istio-ingress
|
|
helm install istio-ingress istio/gateway -n istio-ingress
|
|
|
|
helm install istio-ingressgateway istio/gateway -n istio-system
|
|
|
|
# ingress class
|
|
cat <<EOF | kubectl apply -f -
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: IngressClass
|
|
metadata:
|
|
name: istio
|
|
annotations:
|
|
ingressclass.kubernetes.io/is-default-class: "true"
|
|
spec:
|
|
controller: istio.io/ingress-controller
|
|
EOF
|
|
|
|
# first ingress
|
|
cat <<EOF | kubectl apply -f -
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: httpbin
|
|
spec:
|
|
ingressClassName: istio
|
|
rules:
|
|
- host: httpbin.homelab.hrajfrisbee.cz
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: httpbin
|
|
port:
|
|
number: 8000
|
|
EOF
|
|
|
|
``` |