Compare commits
14 Commits
b2d76bf770
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5bc8e75175 | |||
| 23554064c2 | |||
| f215446ea6 | |||
| 60e0298161 | |||
| 44d28ca19a | |||
| 4ac210cb9c | |||
| 0f45179919 | |||
| 7979b35e7e | |||
| aa64c846be | |||
| 3a8481a10e | |||
| 95188e479b | |||
| 3a4d13893b | |||
| ba0ae300ea | |||
| ddf8fbe8d6 |
@@ -1,57 +0,0 @@
|
|||||||
name: Helm Publish
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
curl -sSL https://get.helm.sh/helm-v3.15.0-linux-amd64.tar.gz -o /tmp/helm.tgz
|
|
||||||
tar xzf /tmp/helm.tgz -C /tmp
|
|
||||||
install /tmp/linux-amd64/helm /usr/local/bin/helm
|
|
||||||
|
|
||||||
- name: Install helm cm-push plugin
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
helm plugin install https://github.com/chartmuseum/helm-push
|
|
||||||
|
|
||||||
- name: Lint and package chart
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
helm lint .
|
|
||||||
helm dependency update . || true
|
|
||||||
helm package . -d /tmp
|
|
||||||
|
|
||||||
- name: Push chart to Gitea Helm registry
|
|
||||||
env:
|
|
||||||
HELM_REPO_URL: "https://gitea.apilab.us/api/packages/cscott/helm"
|
|
||||||
HELM_REPO_NAME: "gitea-helm"
|
|
||||||
HELM_USER: "cscott"
|
|
||||||
HELM_PASSWORD: "${{ secrets.HELM_PASSWORD }}"
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
helm repo add "$HELM_REPO_NAME" "$HELM_REPO_URL" \
|
|
||||||
--username "$HELM_USER" \
|
|
||||||
--password "$HELM_PASSWORD"
|
|
||||||
|
|
||||||
NAME="$(grep '^name:' Chart.yaml | awk '{print $2}')"
|
|
||||||
YAML_VERSION="$(grep '^version:' Chart.yaml | awk '{print $2}')"
|
|
||||||
CHART_TGZ="/tmp/${NAME}-${YAML_VERSION}.tgz"
|
|
||||||
if [ ! -f "$CHART_TGZ" ]; then
|
|
||||||
echo "Expected packaged chart not found: $CHART_TGZ"
|
|
||||||
ls -l /tmp
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
helm cm-push "$CHART_TGZ" "$HELM_REPO_NAME"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# plex-media-server
|
# Plex Media Server
|
||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
|
|||||||
25
argo-helm.yaml
Normal file
25
argo-helm.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: peanutflix
|
||||||
|
namespace: openshift-gitops
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: peanutflix
|
||||||
|
source:
|
||||||
|
repoURL: https://gitea.apilab.us/cscott/peanutflix.git
|
||||||
|
targetRevision: main
|
||||||
|
path: .
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- values.yaml
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ApplyOutOfSyncOnly=true
|
||||||
|
- PruneLast=true
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
oc create sa peanutflix-sa -n peanutflix
|
|
||||||
oc adm policy add-scc-to-user anyuid -z peanutflix-sa -n peanutflix
|
|
||||||
20
values.yaml
20
values.yaml
@@ -82,12 +82,13 @@ pms:
|
|||||||
# requests:
|
# requests:
|
||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
#limits:
|
limits:
|
||||||
# amd.com/gpu: 1
|
amd.com/gpu: 1
|
||||||
|
|
||||||
# -- Security context for PMS pods
|
# -- Security context for PMS pods
|
||||||
securityContext: {}
|
securityContext: {}
|
||||||
|
|
||||||
|
# Redundant for openshift
|
||||||
containerSecurityContext:
|
containerSecurityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
@@ -101,8 +102,7 @@ pms:
|
|||||||
shareProcessNamespace: false
|
shareProcessNamespace: false
|
||||||
|
|
||||||
# -- Add kubernetes liveness probe to pms container.
|
# -- Add kubernetes liveness probe to pms container.
|
||||||
livenessProbe:
|
livenessProbe: {}
|
||||||
{}
|
|
||||||
# httpGet:
|
# httpGet:
|
||||||
# path: /identity
|
# path: /identity
|
||||||
# port: 32400
|
# port: 32400
|
||||||
@@ -112,8 +112,7 @@ pms:
|
|||||||
# failureThreshold: 3
|
# failureThreshold: 3
|
||||||
|
|
||||||
# -- Add kubernetes readiness probe to pms container.
|
# -- Add kubernetes readiness probe to pms container.
|
||||||
readinessProbe:
|
readinessProbe: {}
|
||||||
{}
|
|
||||||
# httpGet:
|
# httpGet:
|
||||||
# path: /identity
|
# path: /identity
|
||||||
# port: 32400
|
# port: 32400
|
||||||
@@ -284,7 +283,10 @@ priorityClassName: ""
|
|||||||
# -- Common Labels for all resources created by this chart.
|
# -- Common Labels for all resources created by this chart.
|
||||||
commonLabels: {}
|
commonLabels: {}
|
||||||
|
|
||||||
extraEnv: {}
|
extraEnv:
|
||||||
|
S6_YES_I_WANT_A_WORLD_WRITABLE_RUN_BECAUSE_KUBERNETES: "1"
|
||||||
|
PLEX_UID: "1000"
|
||||||
|
PLEX_GID: "1000"
|
||||||
# extraEnv:
|
# extraEnv:
|
||||||
# This claim is optional, and is only used for the first startup of PMS
|
# This claim is optional, and is only used for the first startup of PMS
|
||||||
# The claim is obtained from https://www.plex.tv/claim/ is is only valid for a few minutes
|
# The claim is obtained from https://www.plex.tv/claim/ is is only valid for a few minutes
|
||||||
@@ -305,6 +307,8 @@ extraVolumeMounts:
|
|||||||
# extraVolumeMounts:
|
# extraVolumeMounts:
|
||||||
- name: dev-dri
|
- name: dev-dri
|
||||||
mountPath: /dev/dri
|
mountPath: /dev/dri
|
||||||
|
#- name: s6-run
|
||||||
|
# mountPath: /var/run/s6
|
||||||
- name: pms
|
- name: pms
|
||||||
mountPath: /mnt/nfs
|
mountPath: /mnt/nfs
|
||||||
|
|
||||||
@@ -318,6 +322,8 @@ extraVolumes:
|
|||||||
- name: pms
|
- name: pms
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: plex
|
claimName: plex
|
||||||
|
#- name: s6-run
|
||||||
|
# emptyDir: {}
|
||||||
|
|
||||||
extraContainers: []
|
extraContainers: []
|
||||||
# extraContainers:
|
# extraContainers:
|
||||||
|
|||||||
Reference in New Issue
Block a user