Add LoadBalancer service for plex

This commit is contained in:
SeanOMik 2023-04-11 13:13:04 -04:00
parent fa7ca87e21
commit 3d2831e07d
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
3 changed files with 26 additions and 6 deletions

View File

@ -15,6 +15,7 @@ spec:
namespace: flux-system namespace: flux-system
values: values:
image: image:
repository: plexinc/pms-docker repository: plexinc/pms-docker
tag: latest tag: latest
@ -27,11 +28,12 @@ spec:
ADVERTISE_IP: "https://plex.${SECRET_NEW_DOMAIN}/" ADVERTISE_IP: "https://plex.${SECRET_NEW_DOMAIN}/"
ALLOWED_NETWORKS: "0.0.0.0/0" ALLOWED_NETWORKS: "0.0.0.0/0"
service: # service:
main: # main:
ports: # type:
http: # ports:
port: 32400 # http:
# port: 32400
probes: probes:
liveness: liveness:

View File

@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./helm-release.yaml - ./helm-release.yaml
- ./service.yaml

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: plex
namespace: media
annotations:
metallb.universe.tf/allow-shared-ip: "main-ip-192.168.87.10"
spec:
type: LoadBalancer
loadBalancerIP: 192.168.87.10
ports:
- name: plex-http
protocol: TCP
port: 32400
targetPort: 32400
selector:
app.kubernetes.io/name: plex