Commit 27a1d09c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Policy component:

- Remove unneeded jacoco.exec file
- Updated Kubernetes.yml file
parent 5b4bc763
Loading
Loading
Loading
Loading

src/policy/jacoco.exec

deleted100644 → 0
−42.7 KiB

File deleted.

+28 −16
Original line number Diff line number Diff line
# 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: