mirror of
https://github.com/thejimnicholson/heimdall-k8s.git
synced 2025-12-06 03:30:45 +00:00
Init project
This commit is contained in:
commit
ce36b33bac
44
deployment.yaml
Normal file
44
deployment.yaml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: heimdall # < name of the deployment
|
||||||
|
namespace: heimdall # < namespace where place the deployment and pods
|
||||||
|
labels:
|
||||||
|
app: heimdall # < label for tagging and reference
|
||||||
|
spec:
|
||||||
|
replicas: 1 # < number of pods to deploy
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: heimdall
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 0 # < The number of pods that can be created above the desired amount of pods during an update
|
||||||
|
maxUnavailable: 1 # < The number of pods that can be unavailable during the update process
|
||||||
|
type: RollingUpdate # < New pods are added gradually, and old pods are terminated gradually
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: heimdall
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: heimdall-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: heimdall-claim
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/linuxserver/heimdall # < the name of the docker image we will use
|
||||||
|
name: heimdall # < name of container
|
||||||
|
imagePullPolicy: Always # < always use the latest image when creating container/pod
|
||||||
|
env: # < the environment variables required (see container documentation)
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "America/Los_Angeles"
|
||||||
|
ports: # < the ports required (see container documentation)
|
||||||
|
- containerPort: 80
|
||||||
|
name: http-80
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts: # < the volume mount in the container. Look at the relation volumelabel->pvc->pv
|
||||||
|
- mountPath: /config # < mount location in the container
|
||||||
|
name: heimdall-data # < volumelabel configured earlier in the yaml file
|
||||||
20
ingress.yaml
Normal file
20
ingress.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: heimdall-ingress
|
||||||
|
namespace: heimdall
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: "traefik"
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: heimdall.home.thejimnicholson.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: heimdall
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
8
kustomization.yaml
Normal file
8
kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- volume.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
4
namespace.yaml
Normal file
4
namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: heimdall
|
||||||
13
service.yaml
Normal file
13
service.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: heimdall
|
||||||
|
namespace: heimdall
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: heimdall
|
||||||
|
|
||||||
13
volume.yaml
Normal file
13
volume.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: heimdall-claim
|
||||||
|
namespace: heimdall
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
Loading…
Reference in New Issue
Block a user