Skip to content

Modular logistics and supply chain operating system (LSOS)

Remove helm service hooks. Use DNS names for services

Eugene Dementyevcd9be057145a
diff --git a/infra/helm/templates/_helpers.tpl b/infra/helm/templates/_helpers.tpl
index d921805a..580c61a4 100644
--- a/infra/helm/templates/_helpers.tpl
+++ b/infra/helm/templates/_helpers.tpl
@@ -52,13 +52,13 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- define "helm.commonVariables" -}}
- name: CACHE_URL
- value: $(REDIS_SERVICE_PORT)/1
+ value: tcp://redis-service.{{ .Release.Namespace }}.svc.cluster.local/1
- name: CACHE_DRIVER
value: redis
- name: SOCKETCLUSTER_PORT
value: "80"
- name: SOCKETCLUSTER_HOST
- value: $(SOCKETCLUSTER_SERVICE_HOST)
+ value: socketcluster.{{ .Release.Namespace }}.svc.cluster.local
{{- end }}
{{/*
Create the name of the service account to use
diff --git a/infra/helm/templates/redis.yaml b/infra/helm/templates/redis.yaml
index 45dda8e2..8fa4a97e 100644
--- a/infra/helm/templates/redis.yaml
+++ b/infra/helm/templates/redis.yaml
@@ -22,9 +22,6 @@ apiVersion: v1
kind: Service
metadata:
name: redis-service
- annotations:
- helm.sh/hook: pre-install,pre-upgrade
- helm.sh/hook-weight: "10"
spec:
selector:
app: redis
diff --git a/infra/helm/templates/service.yaml b/infra/helm/templates/service.yaml
index c0c84ed5..7c32fbdc 100644
--- a/infra/helm/templates/service.yaml
+++ b/infra/helm/templates/service.yaml
@@ -2,9 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "helm.fullname" . }}
- annotations:
- helm.sh/hook: pre-install,pre-upgrade
- helm.sh/hook-weight: "10"
labels:
{{- include "helm.labels" . | nindent 4 }}
spec:
diff --git a/infra/helm/templates/socketcluster.yaml b/infra/helm/templates/socketcluster.yaml
index 894373f5..62feedcb 100644
--- a/infra/helm/templates/socketcluster.yaml
+++ b/infra/helm/templates/socketcluster.yaml
@@ -25,9 +25,6 @@ apiVersion: v1
kind: Service
metadata:
name: socketcluster
- annotations:
- helm.sh/hook: pre-install,pre-upgrade
- helm.sh/hook-weight: "10"
spec:
selector:
app: socketcluster