From f7c39be6a5a7076ed7df38d23720e322c7a836d4 Mon Sep 17 00:00:00 2001 From: sacreman Date: Tue, 14 Sep 2021 22:17:42 +0700 Subject: [PATCH] clean up provider values --- charts/provider/templates/deployment.yaml | 11 +++- charts/provider/values.yaml | 64 +---------------------- 2 files changed, 11 insertions(+), 64 deletions(-) diff --git a/charts/provider/templates/deployment.yaml b/charts/provider/templates/deployment.yaml index 12af15e2..663a19ba 100644 --- a/charts/provider/templates/deployment.yaml +++ b/charts/provider/templates/deployment.yaml @@ -3,6 +3,9 @@ kind: Deployment metadata: name: akash-provider spec: +{{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} +{{- end }} selector: matchLabels: app: akash-provider @@ -11,11 +14,15 @@ spec: labels: app: akash-provider spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} serviceAccountName: akash-provider containers: - name: akash-provider - image: ghcr.io/ovrclk/akash:stable - imagePullPolicy: IfNotPresent + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: { { .Values.image.pullPolicy } } command: ["/bin/sh", "/boot/run.sh"] env: ## diff --git a/charts/provider/values.yaml b/charts/provider/values.yaml index 8e2dc1ce..d702162e 100644 --- a/charts/provider/values.yaml +++ b/charts/provider/values.yaml @@ -5,65 +5,11 @@ replicaCount: 1 image: - repository: nginx + repository: ghcr.io/ovrclk/akash pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" + tag: stable imagePullSecrets: [] -nameOverride: "" -fullnameOverride: "" - -serviceAccount: - # Specifies whether a service account should be created - create: true - # Annotations to add to the service account - annotations: {} - # The name of the service account to use. - # If not set and create is true, a name is generated using the fullname template - name: "" - -podAnnotations: {} - -podSecurityContext: {} - # fsGroup: 2000 - -securityContext: {} - # capabilities: - # drop: - # - ALL - # readOnlyRootFilesystem: true - # runAsNonRoot: true - # runAsUser: 1000 - -service: - type: ClusterIP - port: 80 - -ingress: - enabled: false - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - hosts: - - host: chart-example.local - paths: [] - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local - -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi autoscaling: enabled: false @@ -71,9 +17,3 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80 - -nodeSelector: {} - -tolerations: [] - -affinity: {}