From 940ad33be7f9f27006a34ccfd20a0331a459c8af Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Fri, 6 Aug 2021 22:08:36 -0400 Subject: [PATCH] cleanup --- charts/ip/Chart.yaml | 2 +- charts/ip/hpa.yaml | 28 ---------------------------- charts/ip/serviceaccount.yaml | 12 ------------ charts/ip/values.yaml | 12 +++++++----- 4 files changed, 8 insertions(+), 46 deletions(-) delete mode 100644 charts/ip/hpa.yaml delete mode 100644 charts/ip/serviceaccount.yaml diff --git a/charts/ip/Chart.yaml b/charts/ip/Chart.yaml index 3509522..a2be656 100644 --- a/charts/ip/Chart.yaml +++ b/charts/ip/Chart.yaml @@ -15,7 +15,7 @@ type: application # 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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.1 +version: 0.1.10 # 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 diff --git a/charts/ip/hpa.yaml b/charts/ip/hpa.yaml deleted file mode 100644 index 0856080..0000000 --- a/charts/ip/hpa.yaml +++ /dev/null @@ -1,28 +0,0 @@ -{{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "ip.fullname" . }} - labels: - {{- include "ip.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "ip.fullname" . }} - minReplicas: {{ .Values.autoscaling.minReplicas }} - maxReplicas: {{ .Values.autoscaling.maxReplicas }} - metrics: - {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/charts/ip/serviceaccount.yaml b/charts/ip/serviceaccount.yaml deleted file mode 100644 index 8d54af9..0000000 --- a/charts/ip/serviceaccount.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "ip.serviceAccountName" . }} - labels: - {{- include "ip.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/charts/ip/values.yaml b/charts/ip/values.yaml index 62c63dc..21e8de8 100644 --- a/charts/ip/values.yaml +++ b/charts/ip/values.yaml @@ -5,8 +5,10 @@ replicaCount: 1 image: - repository: jcabillot/ip + repository: docker.io/jcabillot/ip pullPolicy: Always + # Overrides the image tag whose default is the chart appVersion. + tag: "" imagePullSecrets: [] nameOverride: "" @@ -40,21 +42,21 @@ service: port: 80 ingress: - enabled: true + enabled: false annotations: kubernetes.io/ingress.class: "traefik" cert-manager.io/cluster-issuer: "letsencrypt-prod" hosts: - - host: "ip.opti.cabillot.eu" + - host: "toto.opti.cabillot.eu" paths: - path: / backend: - serviceName: "ip-svc" + serviceName: "ip" servicePort: 80 tls: - secretName: "ip-tls" hosts: - - "ip.opti.cabillot.eu" + - "toto.opti.cabillot.eu" resources: {} # We usually recommend not to specify default resources and to leave this as a conscious