musicassistant
This commit is contained in:
75
kubernetes/homeassistant/1-music-assistant.yml
Normal file
75
kubernetes/homeassistant/1-music-assistant.yml
Normal file
@@ -0,0 +1,75 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: music-assistant-server
|
||||
namespace: homeassistant
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: music-assistant-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: music-assistant-server
|
||||
spec:
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: music-assistant-server
|
||||
image: ghcr.io/music-assistant/server:2
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: LOG_LEVEL
|
||||
value: "info"
|
||||
- name: TZ
|
||||
value: "America/Denver"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
hostPath:
|
||||
path: /data/music-assistant-server/data
|
||||
type: DirectoryOrCreate
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: music-assistant
|
||||
namespace: homeassistant
|
||||
# annotations:
|
||||
# tailscale.com/expose: "true"
|
||||
spec:
|
||||
selector:
|
||||
app: music-assistant-server
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 8095
|
||||
targetPort: 8095
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: music-assistant-ingress
|
||||
namespace: homeassistant
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: cloudflare-issuer
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- sound.alexmickelson.guru
|
||||
secretName: music-assistant-tls-cert
|
||||
rules:
|
||||
- host: sound.alexmickelson.guru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: music-assistant
|
||||
port:
|
||||
number: 8095
|
||||
---
|
||||
@@ -1,53 +1,53 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: musicassistant-ingress
|
||||
namespace: projects
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: cloudflare-issuer
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- sound.alexmickelson.guru
|
||||
secretName: sound-tls-cert
|
||||
rules:
|
||||
- host: sound.alexmickelson.guru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: musicassistant
|
||||
port:
|
||||
number: 8095
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: musicassistant
|
||||
namespace: projects
|
||||
spec:
|
||||
ports:
|
||||
- port: 8095
|
||||
targetPort: 8095
|
||||
protocol: TCP
|
||||
---
|
||||
apiVersion: discovery.k8s.io/v1
|
||||
kind: EndpointSlice
|
||||
metadata:
|
||||
name: musicassistant
|
||||
namespace: projects
|
||||
labels:
|
||||
kubernetes.io/service-name: musicassistant
|
||||
addressType: IPv4
|
||||
ports:
|
||||
- name: http
|
||||
port: 8095
|
||||
protocol: TCP
|
||||
endpoints:
|
||||
- addresses:
|
||||
- 100.122.128.107
|
||||
conditions:
|
||||
ready: true
|
||||
# apiVersion: networking.k8s.io/v1
|
||||
# kind: Ingress
|
||||
# metadata:
|
||||
# name: musicassistant-ingress
|
||||
# namespace: projects
|
||||
# annotations:
|
||||
# cert-manager.io/cluster-issuer: cloudflare-issuer
|
||||
# spec:
|
||||
# ingressClassName: nginx
|
||||
# tls:
|
||||
# - hosts:
|
||||
# - sound.alexmickelson.guru
|
||||
# secretName: sound-tls-cert
|
||||
# rules:
|
||||
# - host: sound.alexmickelson.guru
|
||||
# http:
|
||||
# paths:
|
||||
# - path: /
|
||||
# pathType: Prefix
|
||||
# backend:
|
||||
# service:
|
||||
# name: musicassistant
|
||||
# port:
|
||||
# number: 8095
|
||||
# ---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: musicassistant
|
||||
# namespace: projects
|
||||
# spec:
|
||||
# ports:
|
||||
# - port: 8095
|
||||
# targetPort: 8095
|
||||
# protocol: TCP
|
||||
# ---
|
||||
# apiVersion: discovery.k8s.io/v1
|
||||
# kind: EndpointSlice
|
||||
# metadata:
|
||||
# name: musicassistant
|
||||
# namespace: projects
|
||||
# labels:
|
||||
# kubernetes.io/service-name: musicassistant
|
||||
# addressType: IPv4
|
||||
# ports:
|
||||
# - name: http
|
||||
# port: 8095
|
||||
# protocol: TCP
|
||||
# endpoints:
|
||||
# - addresses:
|
||||
# - 100.122.128.107
|
||||
# conditions:
|
||||
# ready: true
|
||||
|
||||
Reference in New Issue
Block a user