43
apps/homer/base/development.yaml
Normal file
43
apps/homer/base/development.yaml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: homer
|
||||||
|
namespace: homer
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: homer
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: homer
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: homer
|
||||||
|
rpi5.cluster.policy/egress-world: "true"
|
||||||
|
rpi5.cluster.policy/ingress-world: "true"
|
||||||
|
spec:
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
containers:
|
||||||
|
- name: homer
|
||||||
|
image: b4bz/homer:v24.05.1
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
env:
|
||||||
|
- name: PORT
|
||||||
|
value: "8088"
|
||||||
|
- name: INIT_ASSETS
|
||||||
|
value: "0"
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
containerPort: 8088
|
||||||
|
name: http
|
||||||
|
volumeMounts:
|
||||||
|
- name: assets
|
||||||
|
mountPath: /www/assets
|
||||||
|
volumes:
|
||||||
|
- name: assets
|
||||||
|
hostPath:
|
||||||
|
path: /mnt/nfs/AppData/homer/www/assets
|
||||||
|
type: Directory
|
||||||
21
apps/homer/base/ingress.yaml
Normal file
21
apps/homer/base/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: homer-ingress
|
||||||
|
namespace: homer
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||||
|
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: "home.edward.sydney"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: homer
|
||||||
|
port:
|
||||||
|
number: 8088
|
||||||
6
apps/homer/base/kustomization.yaml
Normal file
6
apps/homer/base/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./development.yaml
|
||||||
|
- ./service.yaml
|
||||||
|
- ./ingress.yaml
|
||||||
17
apps/homer/base/service.yaml
Normal file
17
apps/homer/base/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: homer
|
||||||
|
namespace: homer
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: homer
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: homer
|
||||||
|
type: ClusterIP
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8088
|
||||||
|
targetPort: 8088
|
||||||
|
name: http
|
||||||
11
apps/homer/env/k3s-cluster/config.json
vendored
Normal file
11
apps/homer/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"appName": "homer",
|
||||||
|
"userGivenName": "homer",
|
||||||
|
"destNamespace": "homer",
|
||||||
|
"destServer": "https://kubernetes.default.svc",
|
||||||
|
"srcPath": "apps/homer/env/k3s-cluster",
|
||||||
|
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||||
|
"srcTargetRevision": "",
|
||||||
|
"labels": null,
|
||||||
|
"annotations": null
|
||||||
|
}
|
||||||
4
apps/homer/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
apps/homer/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
Reference in New Issue
Block a user