we-re traefik now
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-ingress.yaml
|
#https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-ingress.yaml
|
||||||
#https://www.haproxy.com/documentation/kubernetes/latest/installation/community/kubernetes/
|
#https://www.haproxy.com/documentation/kubernetes/latest/installation/community/kubernetes/
|
||||||
#
|
#
|
||||||
# NOTES: Image is not from haproxytech, no arm64 imgs
|
# NOTES: Images are not from haproxytech, no arm64 imgs
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
@@ -80,7 +80,8 @@ metadata:
|
|||||||
name: haproxy
|
name: haproxy
|
||||||
namespace: haproxy-controller
|
namespace: haproxy-controller
|
||||||
data:
|
data:
|
||||||
|
forwarded-for: "true"
|
||||||
|
load-balance: "leastconn"
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -101,7 +102,8 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: ingress-default-backend
|
- name: ingress-default-backend
|
||||||
image: gcr.io/google_containers/defaultbackend:1.0
|
#image: gcr.io/google_containers/defaultbackend:1.4
|
||||||
|
image: starlingx4arm/defaultbackend:1.5-aarch64
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ apiVersion: networking.k8s.io/v1beta1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea
|
name: gitea
|
||||||
|
annotations:
|
||||||
|
ingress.kubernetes.io/whitelist-x-forwarded-for: "true"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: git-ui.lan
|
- host: git-ui.lan
|
||||||
|
|||||||
@@ -91,4 +91,3 @@ spec:
|
|||||||
- backend:
|
- backend:
|
||||||
serviceName: hassio
|
serviceName: hassio
|
||||||
servicePort: http
|
servicePort: http
|
||||||
path: /
|
|
||||||
|
|||||||
@@ -127,8 +127,6 @@ apiVersion: networking.k8s.io/v1beta1
|
|||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: pihole
|
name: pihole
|
||||||
annotations:
|
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /admin/$1
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: pihole.lan
|
- host: pihole.lan
|
||||||
@@ -137,7 +135,6 @@ spec:
|
|||||||
- backend:
|
- backend:
|
||||||
serviceName: pihole-tcp
|
serviceName: pihole-tcp
|
||||||
servicePort: http
|
servicePort: http
|
||||||
path: /(.*)
|
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
@@ -2,80 +2,79 @@
|
|||||||
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: rompr
|
name: rompr
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: rompr
|
app: rompr
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: rompr
|
app: rompr
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: docker-registry.lan/rompr:arm64
|
- image: docker-registry.lan/rompr:arm64
|
||||||
name: rompr
|
name: rompr
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9000
|
- containerPort: 9000
|
||||||
name: php-fpm
|
name: php-fpm
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: rompr-data
|
- name: rompr-data
|
||||||
mountPath: /rompr
|
mountPath: /rompr
|
||||||
- image: sebp/lighttpd:latest
|
- image: sebp/lighttpd:latest
|
||||||
name: lighttpd
|
name: lighttpd
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
name: http
|
name: http
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: rompr-data
|
- name: rompr-data
|
||||||
mountPath: /rompr
|
mountPath: /rompr
|
||||||
- name: rompr-lighttpd-config
|
- name: rompr-lighttpd-config
|
||||||
mountPath: /etc/lighttpd
|
mountPath: /etc/lighttpd
|
||||||
volumes:
|
volumes:
|
||||||
- name: rompr-data
|
- name: rompr-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: rompr-data
|
claimName: rompr-data
|
||||||
- name: rompr-lighttpd-config
|
- name: rompr-lighttpd-config
|
||||||
configMap:
|
configMap:
|
||||||
name: rompr-lighttpd-config
|
name: rompr-lighttpd-config
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: rompr
|
name: rompr
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 80
|
||||||
selector:
|
selector:
|
||||||
app: rompr
|
app: rompr
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: rompr
|
name: rompr
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: musik.lan
|
- host: musik.lan
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
serviceName: rompr
|
serviceName: rompr
|
||||||
servicePort: http
|
servicePort: http
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: rompr-data
|
name: rompr-data
|
||||||
spec:
|
spec:
|
||||||
storageClassName: nfs-ssd
|
storageClassName: nfs-ssd
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 6Gi
|
storage: 6Gi
|
||||||
|
|
||||||
Reference in New Issue
Block a user