diff --git a/cluster/apps/media/plex/helm-release.yaml b/cluster/apps/media/plex/helm-release.yaml index cce5615..f27e6fc 100644 --- a/cluster/apps/media/plex/helm-release.yaml +++ b/cluster/apps/media/plex/helm-release.yaml @@ -15,6 +15,7 @@ spec: namespace: flux-system values: + image: repository: plexinc/pms-docker tag: latest @@ -27,11 +28,12 @@ spec: ADVERTISE_IP: "https://plex.${SECRET_NEW_DOMAIN}/" ALLOWED_NETWORKS: "0.0.0.0/0" - service: - main: - ports: - http: - port: 32400 +# service: +# main: +# type: +# ports: +# http: +# port: 32400 probes: liveness: diff --git a/cluster/apps/media/plex/kustomization.yaml b/cluster/apps/media/plex/kustomization.yaml index ea3145d..1a8d105 100644 --- a/cluster/apps/media/plex/kustomization.yaml +++ b/cluster/apps/media/plex/kustomization.yaml @@ -1,4 +1,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- ./helm-release.yaml \ No newline at end of file +- ./helm-release.yaml +- ./service.yaml \ No newline at end of file diff --git a/cluster/apps/media/plex/service.yaml b/cluster/apps/media/plex/service.yaml new file mode 100644 index 0000000..ad200d9 --- /dev/null +++ b/cluster/apps/media/plex/service.yaml @@ -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 \ No newline at end of file