backup
This commit is contained in:
parent
57cf353500
commit
4e9641201d
38
LB/lb.yaml
Normal file
38
LB/lb.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
#
|
||||
#---
|
||||
#apiVersion: apps/v1
|
||||
#kind: Deployment
|
||||
#metadata:
|
||||
# name: nginx-deployment
|
||||
#spec:
|
||||
# selector:
|
||||
# matchLabels:
|
||||
# app: nginx-backend
|
||||
# replicas: 2 # tells deployment to run 2 pods matching the template
|
||||
# template:
|
||||
# metadata:
|
||||
# labels:
|
||||
# app: nginx
|
||||
# spec:
|
||||
# containers:
|
||||
# - name: nginx
|
||||
# image: nginx:1.14.2
|
||||
# ports:
|
||||
# - containerPort: 80
|
||||
#---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx-lb
|
||||
spec:
|
||||
selector:
|
||||
app: whoami-service
|
||||
ports:
|
||||
- port: 80 # Published port
|
||||
targetPort: 80 # Container port
|
||||
# - port: 443 # Published port
|
||||
# targetPort: 443 # Container port
|
||||
externalTrafficPolicy: Local
|
||||
type: LoadBalancer
|
||||
#---
|
||||
|
45
hosted_ideas/README.md
Normal file
45
hosted_ideas/README.md
Normal file
@ -0,0 +1,45 @@
|
||||
# Dashboards
|
||||
|
||||
Muximux https://github.com/mescon/Muximux
|
||||
|
||||
Flame https://github.com/pawelmalak/flame
|
||||
|
||||
# Kanboard / Task manager
|
||||
|
||||
Vikunja https://vikunja.io/
|
||||
|
||||
# CV (looks cool)
|
||||
rxresu https://rxresu.me/
|
||||
|
||||
|
||||
# Misc
|
||||
|
||||
whoogle https://github.com/benbusby/whoogle-search
|
||||
|
||||
|
||||
|
||||
Metabase ?
|
||||
|
||||
# Downloader
|
||||
|
||||
## Music
|
||||
Deemix
|
||||
|
||||
|
||||
# Content Streaming
|
||||
## Music
|
||||
Navidrome
|
||||
|
||||
# Games
|
||||
## Chess
|
||||
Lila
|
||||
|
||||
# File uploading (replace tube)
|
||||
##
|
||||
https://github.com/awesome-selfhosted/awesome-selfhosted#file-transfer---single-click--drag-n-drop-upload
|
||||
|
||||
|
||||
|
||||
# Metrics / Logs analytics
|
||||
|
||||
Wazuh
|
34
metallib/README.md
Normal file
34
metallib/README.md
Normal file
@ -0,0 +1,34 @@
|
||||
|
||||
# https://levelup.gitconnected.com/step-by-step-slow-guide-kubernetes-cluster-on-raspberry-pi-4b-part-3-899fc270600e
|
||||
|
||||
|
||||
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml
|
||||
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/metallb.yaml
|
||||
|
||||
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
|
||||
|
||||
|
||||
|
||||
|
||||
cat << EOF > metalLB-config.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
namespace: metallb-system
|
||||
name: config
|
||||
data:
|
||||
config: |
|
||||
address-pools:
|
||||
- name: default
|
||||
protocol: layer2
|
||||
addresses:
|
||||
- 192.168.1.30-192.168.1.130
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
kubectl apply -f metalLB-config.yaml
|
||||
|
||||
|
||||
|
||||
# https://github.com/metallb/metallb/blob/main/design/pool-configuration.md
|
@ -4,4 +4,11 @@ https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/
|
||||
|
||||
https://kubernetes.github.io/ingress-nginx/user-guide/basic-usage/
|
||||
|
||||
https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
|
||||
https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
|
||||
|
||||
https://docs.openshift.com/container-platform/4.9/networking/metallb/metallb-configure-services.html
|
||||
|
||||
https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/
|
||||
|
||||
|
||||
https://levelup.gitconnected.com/step-by-step-slow-guide-kubernetes-cluster-on-raspberry-pi-4b-part-3-899fc270600e
|
21
simple_nginx/chess.yaml
Normal file
21
simple_nginx/chess.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:1.14.2
|
||||
ports:
|
||||
- containerPort: 80
|
@ -1,16 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nginx
|
||||
labels:
|
||||
app.kubernetes.io/name: proxy
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:stable
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http-web-svc
|
||||
#apiVersion: v1
|
||||
#kind: Pod
|
||||
#metadata:
|
||||
# name: nginx
|
||||
# labels:
|
||||
# app.kubernetes.io/name: proxy
|
||||
#spec:
|
||||
# containers:
|
||||
# - name: nginx
|
||||
# image: nginx:stable
|
||||
# ports:
|
||||
# - containerPort: 80
|
||||
# name: http-web-svc
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
|
20
simple_nginx/ingtest.yaml
Normal file
20
simple_nginx/ingtest.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ingress-resource-backend
|
||||
spec:
|
||||
# defaultBackend:
|
||||
# resource:
|
||||
# apiGroup: k8s.example.com
|
||||
# kind: StorageBucket
|
||||
# name: static-assets
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: *
|
||||
# pathType: ImplementationSpecific
|
||||
backend:
|
||||
resource:
|
||||
apiGroup: k8s.example.com
|
||||
kind: StorageBucket
|
||||
name: icon-assets
|
Loading…
x
Reference in New Issue
Block a user