add several config files, namely relevant to docker-30 and gitea
This commit is contained in:
31
vagrant/k8s/gitea-values.yaml
Normal file
31
vagrant/k8s/gitea-values.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
# helm upgrade --install gitea gitea-charts/gitea -n gitea --values gitea-values.yaml
|
||||
|
||||
global:
|
||||
storageClass: px-csi-db
|
||||
|
||||
# clusterDomain: homelab.hrajfrisbee.cz
|
||||
|
||||
|
||||
gitea:
|
||||
config:
|
||||
server:
|
||||
SSH_DOMAIN: gitea.homelab.hrajfrisbee.cz
|
||||
|
||||
# service:
|
||||
# http:
|
||||
# type: LoadBalancer
|
||||
# port: 443
|
||||
# annotations:
|
||||
# "io.cilium/lb-ipam-ips": "192.168.0.31"
|
||||
# "lbipam.cilium.io/sharing-key": "1234"
|
||||
# labels:
|
||||
# homelab/public-service: "true"
|
||||
# ssh:
|
||||
# type: LoadBalancer
|
||||
# port: 22
|
||||
# ClusterIP:
|
||||
# annotations:
|
||||
# "io.cilium/lb-ipam-ips": "192.168.0.31"
|
||||
# "lbipam.cilium.io/sharing-key": "1234"
|
||||
# labels:
|
||||
# homelab/public-service: "true"
|
||||
@@ -6,4 +6,4 @@ metadata:
|
||||
spec:
|
||||
cidrs:
|
||||
- start: "192.168.0.31"
|
||||
- stop: "192.168.0.39"
|
||||
stop: "192.168.0.39"
|
||||
64
vagrant/k8s/notes.md
Normal file
64
vagrant/k8s/notes.md
Normal file
@@ -0,0 +1,64 @@
|
||||
## 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
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user