diff --git a/src/policy/jacoco.exec b/src/policy/jacoco.exec deleted file mode 100644 index 1aaf10e44c52d67a9ddaf8de0aa78da148adc51f..0000000000000000000000000000000000000000 Binary files a/src/policy/jacoco.exec and /dev/null differ diff --git a/src/policy/target/kubernetes/kubernetes.yml b/src/policy/target/kubernetes/kubernetes.yml index 18c90107fa26424652ee154295704a4f0cb5732a..aa42e6021510ad40382b278fda6bddbfd4f5f7a1 100644 --- a/src/policy/target/kubernetes/kubernetes.yml +++ b/src/policy/target/kubernetes/kubernetes.yml @@ -1,3 +1,16 @@ +# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. --- apiVersion: v1 kind: Service @@ -10,20 +23,19 @@ metadata: prometheus.io/port: "8080" prometheus.io/scheme: http labels: - app.kubernetes.io/name: policy + app.kubernetes.io/name: policyservice app.kubernetes.io/version: 0.1.0 - name: policy + name: policyservice spec: ports: - name: http - port: 80 + port: 9192 targetPort: 8080 - name: grpc-server - port: 9000 - targetPort: 9000 + port: 6060 + targetPort: 6060 selector: - app.kubernetes.io/name: policy - app.kubernetes.io/version: 0.1.0 + app.kubernetes.io/name: policyservice type: ClusterIP --- apiVersion: apps/v1 @@ -37,14 +49,14 @@ metadata: prometheus.io/port: "8080" prometheus.io/scheme: http labels: - app.kubernetes.io/name: policy + app.kubernetes.io/name: policyservice app.kubernetes.io/version: 0.1.0 - name: policy + name: policyservice spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/name: policy + app.kubernetes.io/name: policyservice app.kubernetes.io/version: 0.1.0 template: metadata: @@ -56,7 +68,7 @@ spec: prometheus.io/port: "8080" prometheus.io/scheme: http labels: - app.kubernetes.io/name: policy + app.kubernetes.io/name: policyservice app.kubernetes.io/version: 0.1.0 spec: containers: @@ -65,7 +77,7 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - image: nuc8/policy:0.1.0 + image: labs.etsi.org:5050/tfs/controller/policy:0.1.0 imagePullPolicy: Always livenessProbe: failureThreshold: 3 @@ -73,16 +85,16 @@ spec: path: /q/health/live port: 8080 scheme: HTTP - initialDelaySeconds: 0 - periodSeconds: 30 + initialDelaySeconds: 2 + periodSeconds: 10 successThreshold: 1 timeoutSeconds: 10 - name: policy + name: policyservice ports: - containerPort: 8080 name: http protocol: TCP - - containerPort: 9000 + - containerPort: 6060 name: grpc-server protocol: TCP readinessProbe: