diff --git a/execution/helm/theodolite-operator/templates/role.yaml b/execution/helm/theodolite-operator/templates/role.yaml index 2ce70d282cf47b0a924bbe5142ecdc44f092f1e4..ac0a0c7fe604ae1df89aaea93ac8b6bc788bffde 100644 --- a/execution/helm/theodolite-operator/templates/role.yaml +++ b/execution/helm/theodolite-operator/templates/role.yaml @@ -13,6 +13,7 @@ rules: - list - get - create + - update - apiGroups: - "" resources: @@ -21,6 +22,7 @@ rules: - servicemonitors - configmaps verbs: + - update - delete - list - get @@ -37,6 +39,7 @@ rules: resources: - servicemonitors verbs: + - update - delete - list - create diff --git a/execution/helm/theodolite-operator/templates/service.yaml b/execution/helm/theodolite-operator/templates/service.yaml index 1391e9189c67ccccd188978cd7364858407a56f9..29616934726a7da8951b831eb146703308b14683 100644 --- a/execution/helm/theodolite-operator/templates/service.yaml +++ b/execution/helm/theodolite-operator/templates/service.yaml @@ -2,14 +2,16 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "theodolite-operator.fullname" . }} + name: {{ include "theodolite-operator.fullname" . }}-service labels: - {{- include "theodolite-operator.labels" . | nindent 4 }} + app: {{ include "theodolite-operator.fullname" . }} spec: type: {{ .Values.serviceAnalysis.type }} ports: - port: {{ .Values.serviceAnalysis.port }} protocol: TCP + name: analysis + targetPort: {{ .Values.serviceAnalysis.port }} selector: - {{- include "theodolite-operator.fullname" . | nindent 4 }} + app: {{ include "theodolite-operator.fullname" . }} {{- end }} \ No newline at end of file diff --git a/execution/helm/theodolite-operator/templates/thedolite-operator.yaml b/execution/helm/theodolite-operator/templates/thedolite-operator.yaml index 1d0b68db69177d08a45209c359afd18a9aa6ce81..6ffeefd8226844f21227f33f55d5f253f98df770 100644 --- a/execution/helm/theodolite-operator/templates/thedolite-operator.yaml +++ b/execution/helm/theodolite-operator/templates/thedolite-operator.yaml @@ -6,12 +6,12 @@ metadata: spec: selector: matchLabels: - app: theodolite + app: {{ include "theodolite-operator.fullname" . }} replicas: 1 template: metadata: labels: - app: theodolite + app: {{ include "theodolite-operator.fullname" . }} spec: terminationGracePeriodSeconds: 0 serviceAccountName: {{ include "theodolite-operator.serviceAccountName" . }} @@ -23,4 +23,11 @@ spec: value: {{ .Values.operator.namespace}} - name: lag-analysis image: benediktwetzel/lag-analysis + env: + - name: PORT + value: "8080" + ports: + - containerPort: 8080 + name: analysis + {{- end }} diff --git a/execution/helm/theodolite-operator/values.yaml b/execution/helm/theodolite-operator/values.yaml index f259913ef9d68bc9931f33fd6a735e24f766eb2d..80dfc235c45ac2b82304c6bf1d1c31c2ff4b7b68 100644 --- a/execution/helm/theodolite-operator/values.yaml +++ b/execution/helm/theodolite-operator/values.yaml @@ -15,5 +15,5 @@ rbac: create: true serviceAnalysis: - type: ClusterIP - port: 80 + type: NodePort + port: 8080