Commit aca963b2 authored by Waqar Ahmed's avatar Waqar Ahmed

Update charts stable train

parent 912ec110
apiVersion: v1
description: Global, Versioned, peer-to-peer filesystem.
name: ipfs
version: 1.0.1
appVersion: master
keywords:
- storage
- p2p
home: https://ipfs.io
icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png
sources:
- https://github.com/ipfs/go-ipfs
- https://hub.docker.com/r/ipfs/go-ipfs
upstream_version: 0.8.0-rc1
IPFS
=====
[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs.
Introduction
------------
This chart bootstraps IPFS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
Configuration
-------------
The following table lists the configurable parameters of the IPFS chart and their default values.
| Parameter | Description | Default |
|:-------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------|
| `image.repository` | Image repository | `ipfs/go-ipfs` |
| `image.tag` | IPFS image tag. Possible values listed [here](https://hub.docker.com/r/ipfs/go-ipfs/tags). | `v0.8.0-rc1` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `extraArgs` | Additional command line arguments to pass to the IPFS server | `[]` |
[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs.
groups:
- name: "Container Images"
description: "Image to be used for container"
- name: "Workload Configuration"
description: "Configure Storage for IPFS"
- name: "Storage"
description: "Configure Storage for IPFS"
- name: "IPFS Configuration"
description: "Configure Storage for IPFS"
portals:
web_portal:
protocols:
- "http"
host:
- "$node_ip"
ports:
- "$variable-service.apiPort"
path: "/webui"
questions:
# Image related
- variable: image
description: "Docker Image Details"
label: "Docker Image"
group: "Container Images"
schema:
type: dict
required: true
attrs:
- variable: repository
description: "Docker image repository"
label: "Image repository"
schema:
type: string
default: "ipfs/go-ipfs"
required: true
- variable: tag
description: "Tag to use for specified image"
label: "Image Tag"
schema:
type: string
default: "v0.8.0-rc1"
- variable: pullPolicy
description: "Docker Image Pull Policy"
label: "Image Pull Policy"
schema:
type: string
default: "IfNotPresent"
enum:
- value: "IfNotPresent"
description: "Only pull image if not present on host"
- value: "Always"
description: "Always pull image even if present on host"
- value: "Never"
description: "Never pull image even if it's not present on host"
- variable: updateStrategy
label: "IPFS update strategy"
group: "Workload Configuration"
schema:
type: string
default: "Recreate"
enum:
- value: "RollingUpdate"
description: "Create new pods and then kill old ones"
- value: "Recreate"
description: "Kill existing pods before creating new ones"
- variable: environment
label: "IPFS image environment"
group: "IPFS Configuration"
schema:
type: list
default: []
items:
- variable: environmentVariable
label: "Environment Variable"
schema:
type: dict
attrs:
- variable: name
label: "Name"
schema:
type: string
- variable: value
label: "Value"
schema:
type: string
- variable: service
description: "IPFS Service Configuration"
label: "IPFS Service Configuration"
group: "IPFS Configuration"
schema:
type: dict
required: true
attrs:
- variable: swarmPort
label: "Swarm Port to use for IPFS (Public)"
schema:
type: int
min: 9000
max: 65535
default: 9401
required: true
- variable: apiPort
label: "API Port to use for IPFS (local)"
schema:
type: int
min: 9000
max: 65535
default: 9501
required: true
- variable: gatewayPort
label: "Gateway Port to use for IPFS (local)"
schema:
type: int
min: 9000
max: 65535
default: 9880
required: true
- variable: ipfsDataHostPathEnabled
label: "Configure Host Path for IPFS data"
group: "Storage"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: ipfsDataHostPath
label: "Specify HostPath for IPFS data"
schema:
type: hostpath
- variable: ipfsDataVolume
label: "IPFS Data Volume Defaults"
group: "Storage"
schema:
type: dict
$ref:
- "normalize/ixVolume"
show_if: [["ipfsDataHostPathEnabled", "=", false]]
attrs:
- variable: mountPath
label: "Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
editable: false
default: "/data/ipfs"
- variable: datasetName
label: "IPFS Data Dataset Name"
schema:
type: string
default: "ix-ipfs-data"
editable: false
- variable: ipfsStagingHostPathEnabled
label: "Configure Host Path for IPFS staging data"
group: "Storage"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: ipfsStagingHostPath
label: "Specify HostPath for IPFS staging data"
schema:
type: hostpath
- variable: ipfsStagingVolume
label: "IPFS Staging Volume Defaults"
group: "Storage"
schema:
type: dict
$ref:
- "normalize/ixVolume"
show_if: [["ipfsStagingHostPathEnabled", "=", false]]
attrs:
- variable: mountPath
label: "Mount Path"
description: "Path where the volume will be mounted inside the pod"
schema:
type: path
editable: false
default: "/export"
- variable: datasetName
label: "IPFS Staging Dataset Name"
schema:
type: string
default: "ix-ipfs-staging"
editable: false
IPFS can be accessed from the following URL:
http://$node_ip:{{ .Values.service.apiPort }}/webui
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "ipfs.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "ipfs.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "ipfs.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Return the appropriate apiVersion for deployment.
*/}}
{{- define "ipfs.deployment.apiVersion" -}}
{{- print "apps/v1" -}}
{{- end -}}
{{/*
Return the appropriate apiVersion for statefulset.
*/}}
{{- define "ipfs.statefulset.apiVersion" -}}
{{- print "apps/v1" -}}
{{- end -}}
{{/*
Determine secret name.
*/}}
{{- define "ipfs.secretName" -}}
{{- include "ipfs.fullname" . -}}
{{- end -}}
{{/*
Determine service account name for deployment or statefulset.
*/}}
{{- define "ipfs.serviceAccountName" -}}
{{- (include "ipfs.fullname" .) | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Determine name for scc role and rolebinding
*/}}
{{- define "ipfs.sccRoleName" -}}
{{- printf "%s-%s" "scc" (include "ipfs.fullname" .) | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Retrieve host path from ix volumes based on dataset name
*/}}
{{- define "retrieveHostPathFromiXVolume" -}}
{{- range $index, $hostPathConfiguration := $.ixVolumes }}
{{- $dsName := base $hostPathConfiguration.hostPath -}}
{{- if eq $.datasetName $dsName -}}
{{- $hostPathConfiguration.hostPath -}}
{{- end -}}
{{- end }}
{{- end -}}
{{/*
Retrieve host path for ipfs
*/}}
{{- define "configuredHostPathData" -}}
{{- if .Values.ipfsDataHostPathEnabled -}}
{{- .Values.ipfsDataHostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.ipfsDataVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
{{/*
Retrieve host path for ipfs
*/}}
{{- define "configuredHostPathStaging" -}}
{{- if .Values.ipfsStagingHostPathEnabled -}}
{{- .Values.ipfsStagingHostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.ipfsStagingVolume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
{{ $scheme := "http" }}
apiVersion: {{ template "ipfs.deployment.apiVersion" . }}
kind: Deployment
metadata:
name: {{ template "ipfs.fullname" . }}
labels:
app: {{ template "ipfs.name" . }}
chart: {{ template "ipfs.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
strategy:
type: {{ .Values.updateStrategy }}
selector:
matchLabels:
app: {{ template "ipfs.name" . }}
release: {{ .Release.Name }}
template:
metadata:
name: {{ template "ipfs.fullname" . }}
labels:
app: {{ template "ipfs.name" . }}
release: {{ .Release.Name }}
spec:
serviceAccountName: {{ include "ipfs.serviceAccountName" . | quote }}
initContainers:
- name: init-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/bin/sh', '-c', '[ ! -e /data/ipfs/config ] && (/usr/local/bin/ipfs init ; chown -R 1000:100 /data/ipfs) ; exit 0']
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
- name: init-api
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/usr/local/bin/ipfs', 'config', 'Addresses.API', "/ip4/0.0.0.0/tcp/{{ .Values.service.apiPort}}"]
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
- name: init-gateway
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/usr/local/bin/ipfs', 'config', 'Addresses.Gateway', "/ip4/0.0.0.0/tcp/{{ .Values.service.gatewayPort}}"]
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
- name: init-swarm
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/usr/local/bin/ipfs', 'config', '--json', 'Addresses.Swarm', "[\"/ip4/0.0.0.0/tcp/{{ .Values.service.swarmPort}}\",\"/ip4/0.0.0.0/tcp/{{ .Values.service.swarmPort}}/quic\"]" ]
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
- name: init-access-origin
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/usr/local/bin/ipfs', 'config', '--json', 'API.HTTPHeaders.Access-Control-Allow-Origin', "[\"*\"]" ]
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
- name: init-access-methods
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['/usr/local/bin/ipfs', 'config', '--json', 'API.HTTPHeaders.Access-Control-Allow-Methods', "[\"PUT\",\"POST\"]" ]
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
- name: init-chown
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command: ['chown', '1000:100', '/data/ipfs/config']
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: data
mountPath: /data/ipfs
- name: staging
mountPath: /export
ports:
- name: swarm
containerPort: 9401
- name: api
containerPort: 9501
- name: gateway
containerPort: 9880
{{- if .Values.environment }}
env:
{{- range $envVariable := .Values.environment }}
{{- if and $envVariable.name $envVariable.value }}
- name: {{ $envVariable.name }}
value: {{ $envVariable.value | quote }}
{{- else }}
{{- fail "Please specify name/value for environment variable" }}
{{- end }}
{{- end}}
{{- end }}
volumes:
- name: data
{{- if .Values.emptyDirVolumes }}
emptyDir: {}
{{- else }}
hostPath:
path: {{ template "configuredHostPathData" . }}
{{- end }}
- name: staging
{{- if .Values.emptyDirVolumes }}
emptyDir: {}
{{- else }}
hostPath:
path: {{ template "configuredHostPathStaging" . }}
{{- end }}
{{ $scheme := "http" }}
apiVersion: v1
kind: Service
metadata:
name: {{ template "ipfs.fullname" . }}
labels:
app: {{ template "ipfs.name" . }}
chart: {{ template "ipfs.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
type: "NodePort"
ports:
- name: swarm
port: {{ .Values.service.swarmPort }}
protocol: TCP
nodePort: {{ .Values.service.swarmPort }}
targetPort: 9401
- name: api
port: {{ .Values.service.apiPort }}
protocol: TCP
nodePort: {{ .Values.service.apiPort }}
targetPort: 9501
- name: gateway
port: {{ .Values.service.gatewayPort }}
protocol: TCP
nodePort: {{ .Values.service.gatewayPort }}
targetPort: 9880
selector:
app: {{ template "ipfs.name" . }}
release: {{ .Release.Name }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "ipfs.serviceAccountName" . | quote }}
namespace: {{ .Release.Namespace | quote }}
labels:
app: {{ template "ipfs.name" . }}
chart: {{ template "ipfs.chart" . }}
release: "{{ .Release.Name }}"
## Set default image, imageTag, and imagePullPolicy. mode is used to indicate the
##
image:
repository: ipfs/go-ipfs
tag: v0.8.0-rc1
pullPolicy: IfNotPresent
## Additional arguments to pass to minio binary
extraArgs: []
updateStrategy: Recreate
service:
swarmPort: 30941
apiPort: 30951
gatewayPort: 30980
environment:
emptyDirVolumes: true
ipfsDataHostPathEnabled: false
ipfsStagingHostPathEnabled: false
## Set default image, imageTag, and imagePullPolicy. mode is used to indicate the
##
image:
repository: ipfs/go-ipfs
tag: v0.8.0-rc1
pullPolicy: IfNotPresent
## Additional arguments to pass to ipfs binary
extraArgs: []
updateStrategy: Recreate
service:
swarmPort: 9401
apiPort: 9501
gatewayPort: 9080
environment:
ipfsDataHostPathEnabled: false
ipfsStagingHostPathEnabled: false
categories:
- storage
icon_url: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png
...@@ -15,7 +15,7 @@ type: application ...@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2012.0.0 version: 2101.0.0
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
......
...@@ -22,7 +22,6 @@ their default values. ...@@ -22,7 +22,6 @@ their default values.
| `image.tag` | The image tag to pull from | `latest` | | `image.tag` | The image tag to pull from | `latest` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` | | `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `updateStrategy` | Upgrade Policy | `RollingUpdate` | | `updateStrategy` | Upgrade Policy | `RollingUpdate` |
| `restartPolicy` | Restart Policy for containers in workload | `Always` |
| `jobRestartPolicy` | Restart Policy for job type workload ( only applicable if `workloadType` is `Job`/`CronJob` | `OnFailure` | | `jobRestartPolicy` | Restart Policy for job type workload ( only applicable if `workloadType` is `Job`/`CronJob` | `OnFailure` |
| `containerCommand` | Commands to execute inside container overriding image CMD default | `null` | | `containerCommand` | Commands to execute inside container overriding image CMD default | `null` |
| `containerArgs` | Specify arguments for container command | `null` | | `containerArgs` | Specify arguments for container command | `null` |
......
...@@ -99,21 +99,6 @@ questions: ...@@ -99,21 +99,6 @@ questions:
description: "Kill existing pods before creating new ones" description: "Kill existing pods before creating new ones"
# Restart Policy # Restart Policy
- variable: restartPolicy
description: "Restart Policy for workload"
label: "Restart Policy"
group: "Restart Policy"
schema:
type: string
show_if: [["workloadType", "=", "Deployment"]]
default: "Always"
enum:
- value: "Always"
description: "Always restart containers in a pod if they exit"
- value: "OnFailure"
description: "Only restart containers if they exit with a failure"
- value: "Never"
description: "Never restart containers if they exit"
- variable: jobRestartPolicy - variable: jobRestartPolicy
description: "Restart Policy for workload" description: "Restart Policy for workload"
label: "Restart Policy" label: "Restart Policy"
......
...@@ -39,7 +39,7 @@ Get Restart policy based on workload type ...@@ -39,7 +39,7 @@ Get Restart policy based on workload type
*/}} */}}
{{- define "restartPolicy" -}} {{- define "restartPolicy" -}}
{{- if eq (include "workloadIsDeployment" .) "true" }} {{- if eq (include "workloadIsDeployment" .) "true" }}
{{- printf "%s" .Values.restartPolicy }} {{- print "Always" }}
{{- else }} {{- else }}
{{- printf "%s" .Values.jobRestartPolicy }} {{- printf "%s" .Values.jobRestartPolicy }}
{{- end }} {{- end }}
......
...@@ -7,7 +7,6 @@ image: ...@@ -7,7 +7,6 @@ image:
tag: latest tag: latest
# Restart / Update policy # Restart / Update policy
restartPolicy: Always
updateStrategy: RollingUpdate updateStrategy: RollingUpdate
# Container CMD / entrypoint # Container CMD / entrypoint
......
...@@ -7,7 +7,6 @@ image: ...@@ -7,7 +7,6 @@ image:
tag: "latest" tag: "latest"
# Restart / Update policy # Restart / Update policy
restartPolicy: Always
updateStrategy: RollingUpdate updateStrategy: RollingUpdate
# Container CMD / entrypoint # Container CMD / entrypoint
......
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
# OWNERS file for Kubernetes
OWNERS
\ No newline at end of file
apiVersion: v1 apiVersion: v1
description: High Performance, Kubernetes Native Object Storage description: High Performance, Kubernetes Native Object Storage
name: minio name: minio
version: 1.0.0 version: 1.0.1
appVersion: master appVersion: master
keywords: keywords:
- storage - storage
......
...@@ -81,6 +81,7 @@ questions: ...@@ -81,6 +81,7 @@ questions:
- variable: accessKey - variable: accessKey
label: "Access Key" label: "Access Key"
group: "Minio Configuration" group: "Minio Configuration"
description: "Enter the S3 access ID"
schema: schema:
type: string type: string
private: true private: true
...@@ -91,6 +92,7 @@ questions: ...@@ -91,6 +92,7 @@ questions:
- variable: secretKey - variable: secretKey
label: "Secret Key" label: "Secret Key"
group: "Minio Configuration" group: "Minio Configuration"
description: "Enter the S3 secret access key"
schema: schema:
type: string type: string
private: true private: true
...@@ -102,9 +104,22 @@ questions: ...@@ -102,9 +104,22 @@ questions:
label: "Minio image environment" label: "Minio image environment"
group: "Minio Configuration" group: "Minio Configuration"
schema: schema:
type: dict type: list
additional_attrs: true default: []
attrs: [] items:
- variable: environmentVariable
label: "Environment Variable"
schema:
type: dict
attrs:
- variable: name
label: "Name"
schema:
type: string
- variable: value
label: "Value"
schema:
type: string
- variable: service - variable: service
description: "Minio Service Configuration" description: "Minio Service Configuration"
...@@ -137,7 +152,7 @@ questions: ...@@ -137,7 +152,7 @@ questions:
type: hostpath type: hostpath
- variable: minioDataVolume - variable: minioDataVolume
label: "Configure iXVolume" label: "Minio Data Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -146,14 +161,14 @@ questions: ...@@ -146,14 +161,14 @@ questions:
show_if: [["minioHostPathEnabled", "=", false]] show_if: [["minioHostPathEnabled", "=", false]]
attrs: attrs:
- variable: mountPath - variable: mountPath
label: "Mount Path" label: "Minio Data Mount Path"
description: "Path where the volume will be mounted inside the pod" description: "Path where the volume will be mounted inside the pod"
schema: schema:
type: path type: path
editable: false editable: false
default: "/export" default: "/export"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Minio Dataset Name"
schema: schema:
type: string type: string
default: "ix-minio" default: "ix-minio"
......
...@@ -50,9 +50,13 @@ spec: ...@@ -50,9 +50,13 @@ spec:
secretKeyRef: secretKeyRef:
name: {{ template "minio.secretName" . }} name: {{ template "minio.secretName" . }}
key: secretkey key: secretkey
{{- range $key, $val := .Values.environment }} {{- range $envVariable := .Values.environment }}
- name: {{ $key }} {{- if and $envVariable.name $envVariable.value }}
value: {{ $val | quote }} - name: {{ $envVariable.name }}
value: {{ $envVariable.value | quote }}
{{- else }}
{{- fail "Please specify name/value for environment variable" }}
{{- end }}
{{- end}} {{- end}}
volumes: volumes:
- name: export - name: export
......
...@@ -11,7 +11,7 @@ extraArgs: [] ...@@ -11,7 +11,7 @@ extraArgs: []
updateStrategy: RollingUpdate updateStrategy: RollingUpdate
service: service:
nodePort: 32000 nodePort: 32001
environment: environment:
## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html ## Please refer for comprehensive list https://docs.minio.io/docs/minio-server-configuration-guide.html
......
...@@ -74,12 +74,14 @@ questions: ...@@ -74,12 +74,14 @@ questions:
- "definitions/nodeIP" - "definitions/nodeIP"
- variable: username - variable: username
label: "Username" label: "Username"
description: "Name of the Nextcloud admin user"
schema: schema:
type: string type: string
default: "admin" default: "admin"
required: true required: true
- variable: password - variable: password
label: "Password" label: "Password"
description: "Password for the Nextcloud admin user"
schema: schema:
type: string type: string
private: true private: true
...@@ -87,6 +89,7 @@ questions: ...@@ -87,6 +89,7 @@ questions:
required: true required: true
- variable: datadir - variable: datadir
label: "Nextcloud data directory" label: "Nextcloud data directory"
description: "Configures the data directory where nextcloud stores all files from the users"
schema: schema:
type: path type: path
default: "/var/www/html/data" default: "/var/www/html/data"
...@@ -133,7 +136,7 @@ questions: ...@@ -133,7 +136,7 @@ questions:
type: hostpath type: hostpath
- variable: nextcloudDataVolume - variable: nextcloudDataVolume
label: "Configure iXVolume" label: "Nextcloud Data Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -142,21 +145,21 @@ questions: ...@@ -142,21 +145,21 @@ questions:
show_if: [["nextcloudDataHostPathEnabled", "=", false]] show_if: [["nextcloudDataHostPathEnabled", "=", false]]
attrs: attrs:
- variable: mountPath - variable: mountPath
label: "Mount Path" label: "Nextcloud Data Mount Path"
description: "Path where the volume will be mounted inside the pod" description: "Path where the volume will be mounted inside the pod"
schema: schema:
type: path type: path
editable: false editable: false
default: "/var/www" default: "/var/www"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Nextcloud Dataset Name"
schema: schema:
type: string type: string
default: "ix-nextcloud_data" default: "ix-nextcloud_data"
editable: false editable: false
- variable: postgresBackupVolume - variable: postgresBackupVolume
label: "Postgres Backup Volume" label: "Postgres Backup Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -164,20 +167,20 @@ questions: ...@@ -164,20 +167,20 @@ questions:
- "normalize/ixVolume" - "normalize/ixVolume"
attrs: attrs:
- variable: mountPath - variable: mountPath
label: "Mount Path" label: "Postgres Backup Mount Path"
schema: schema:
type: path type: path
editable: false editable: false
default: "/postgres_backups" default: "/postgres_backups"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Postgres Backup Dataset Name"
schema: schema:
type: string type: string
default: "ix-postgres_backups" default: "ix-postgres_backups"
editable: false editable: false
- variable: postgresDataVolume - variable: postgresDataVolume
label: "Postgresql Data Volume" label: "Postgresql Data Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -185,13 +188,13 @@ questions: ...@@ -185,13 +188,13 @@ questions:
- "normalize/ixVolume" - "normalize/ixVolume"
attrs: attrs:
- variable: mountPath - variable: mountPath
label: "Mount Path" label: "Postgres Mount Path"
schema: schema:
type: path type: path
editable: false editable: false
default: "/var/lib/postgresql/data" default: "/var/lib/postgresql/data"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Postgres Dataset Name"
schema: schema:
type: string type: string
default: "ix-postgres_data" default: "ix-postgres_data"
......
...@@ -2,7 +2,7 @@ apiVersion: v2 ...@@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.20.2.3402 appVersion: 1.20.2.3402
description: Plex Media Server description: Plex Media Server
name: plex name: plex
version: 1.0.0 version: 1.0.1
keywords: keywords:
- plex - plex
home: https://plex.tv/ home: https://plex.tv/
......
...@@ -70,44 +70,11 @@ questions: ...@@ -70,44 +70,11 @@ questions:
- variable: claimToken - variable: claimToken
label: "Plex Claim Token" label: "Plex Claim Token"
group: "Plex Configuration" group: "Plex Configuration"
description: "The claim token for the server to obtain a real server token. If not provided, server is will not be automatically logged in. If server is already logged in, this parameter is ignored. You can obtain a claim token to login your server to your plex account by visiting https://www.plex.tv/claim."
schema: schema:
type: string type: string
default: "" default: ""
- variable: advertiseIp
label: "Plex Advertise IP"
group: "Plex Configuration"
schema:
type: string
- variable: extraEnv
label: "Environment variables for plex"
group: "Plex Configuration"
schema:
type: dict
additional_attrs: true
attrs: []
- variable: proxy
label: "Configure Proxy environment variable"
group: "Plex Configuration"
schema:
type: dict
attrs:
- variable: enabled
label: "Enable Proxy"
schema:
type: boolean
default: false
- variable: http
label: "HTTP Proxy"
schema:
type: string
- variable: https
label: "HTTPS Proxy"
schema:
type: string
- variable: hostNetwork - variable: hostNetwork
label: "Configure Host Network" label: "Configure Host Network"
group: "Networking" group: "Networking"
...@@ -115,6 +82,27 @@ questions: ...@@ -115,6 +82,27 @@ questions:
type: boolean type: boolean
default: false default: false
- variable: environmentVariables
label: "Environment Variables for Plex"
group: "Plex Configuration"
schema:
type: list
default: []
items:
- variable: environmentVariable
label: "Environment Variable"
schema:
type: dict
attrs:
- variable: name
label: "Name"
schema:
type: string
- variable: value
label: "Value"
schema:
type: string
- variable: timezone - variable: timezone
label: "Plex container timezone" label: "Plex container timezone"
group: "Plex Configuration" group: "Plex Configuration"
...@@ -168,7 +156,7 @@ questions: ...@@ -168,7 +156,7 @@ questions:
required: true required: true
- variable: transcodeVolume - variable: transcodeVolume
label: "Configure iXVolume" label: "Transcode Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -184,7 +172,7 @@ questions: ...@@ -184,7 +172,7 @@ questions:
editable: false editable: false
default: "/transcode" default: "/transcode"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Transcode Dataset Name"
schema: schema:
type: string type: string
default: "ix-plex_transcode" default: "ix-plex_transcode"
...@@ -205,7 +193,7 @@ questions: ...@@ -205,7 +193,7 @@ questions:
required: true required: true
- variable: dataVolume - variable: dataVolume
label: "Configure data iXVolume" label: "Data Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -221,7 +209,7 @@ questions: ...@@ -221,7 +209,7 @@ questions:
editable: false editable: false
default: "/data" default: "/data"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Data Dataset Name"
schema: schema:
type: string type: string
default: "ix-plex_data" default: "ix-plex_data"
...@@ -242,7 +230,7 @@ questions: ...@@ -242,7 +230,7 @@ questions:
required: true required: true
- variable: configVolume - variable: configVolume
label: "Configure iXVolume" label: "Configuration Volume Defaults"
group: "Storage" group: "Storage"
schema: schema:
type: dict type: dict
...@@ -258,7 +246,7 @@ questions: ...@@ -258,7 +246,7 @@ questions:
editable: false editable: false
default: "/config" default: "/config"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Configuration Dataset Name"
schema: schema:
type: string type: string
default: "ix-plex_config" default: "ix-plex_config"
......
...@@ -67,29 +67,15 @@ spec: ...@@ -67,29 +67,15 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
{{- if .Values.proxy.enabled }}
{{- if .Values.proxy.http }}
- name: "HTTP_PROXY"
value: "{{.Values.proxy.http}}"
{{- end }}
{{- if .Values.proxy.https }}
- name: "HTTPS_PROXY"
value: "{{.Values.proxy.https}}"
{{- end }}
{{- end }}
{{- if .Values.advertiseIp }}
- name: "ADVERTISE_IP"
value: "{{.Values.advertiseIp}}"
{{- end }}
{{- if .Values.allowedNetworks }}
- name: "ALLOWED_NETWORKS"
value: "{{include "joinListWithComma" .Values.allowedNetworks}}"
{{- end }}
# Extra ENV Values supplied by user # Extra ENV Values supplied by user
{{- range $key, $value := .Values.extraEnv }} {{- range $envVariable := .Values.environmentVariables }}
- name: {{ $key }} {{- if and $envVariable.name $envVariable.value }}
value: {{ $value }} - name: {{ $envVariable.name }}
{{- end }} value: {{ $envVariable.value | quote }}
{{- else }}
{{- fail "Please specify name/value for environment variable" }}
{{- end }}
{{- end}}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /identity path: /identity
......
...@@ -61,12 +61,5 @@ transcodeHostPathEnabled: false ...@@ -61,12 +61,5 @@ transcodeHostPathEnabled: false
dataHostPathEnabled: false dataHostPathEnabled: false
configHostPathEnabled: false configHostPathEnabled: false
proxy:
# This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover
enabled: false
# http: "http://proxy:8080"
# https: "https://proxy:8080"
# noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12"
gpuConfiguration: {} gpuConfiguration: {}
emptyDirVolumes: true emptyDirVolumes: true
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment