Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!163Fix: Policy not deleting correctly
File deleted
# 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 apiVersion: v1
kind: Service kind: Service
...@@ -10,20 +23,19 @@ metadata: ...@@ -10,20 +23,19 @@ metadata:
prometheus.io/port: "8080" prometheus.io/port: "8080"
prometheus.io/scheme: http prometheus.io/scheme: http
labels: labels:
app.kubernetes.io/name: policy app.kubernetes.io/name: policyservice
app.kubernetes.io/version: 0.1.0 app.kubernetes.io/version: 0.1.0
name: policy name: policyservice
spec: spec:
ports: ports:
- name: http - name: http
port: 80 port: 9192
targetPort: 8080 targetPort: 8080
- name: grpc-server - name: grpc-server
port: 9000 port: 6060
targetPort: 9000 targetPort: 6060
selector: selector:
app.kubernetes.io/name: policy app.kubernetes.io/name: policyservice
app.kubernetes.io/version: 0.1.0
type: ClusterIP type: ClusterIP
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
...@@ -37,14 +49,14 @@ metadata: ...@@ -37,14 +49,14 @@ metadata:
prometheus.io/port: "8080" prometheus.io/port: "8080"
prometheus.io/scheme: http prometheus.io/scheme: http
labels: labels:
app.kubernetes.io/name: policy app.kubernetes.io/name: policyservice
app.kubernetes.io/version: 0.1.0 app.kubernetes.io/version: 0.1.0
name: policy name: policyservice
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: policy app.kubernetes.io/name: policyservice
app.kubernetes.io/version: 0.1.0 app.kubernetes.io/version: 0.1.0
template: template:
metadata: metadata:
...@@ -56,7 +68,7 @@ spec: ...@@ -56,7 +68,7 @@ spec:
prometheus.io/port: "8080" prometheus.io/port: "8080"
prometheus.io/scheme: http prometheus.io/scheme: http
labels: labels:
app.kubernetes.io/name: policy app.kubernetes.io/name: policyservice
app.kubernetes.io/version: 0.1.0 app.kubernetes.io/version: 0.1.0
spec: spec:
containers: containers:
...@@ -65,7 +77,7 @@ spec: ...@@ -65,7 +77,7 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
image: nuc8/policy:0.1.0 image: labs.etsi.org:5050/tfs/controller/policy:0.1.0
imagePullPolicy: Always imagePullPolicy: Always
livenessProbe: livenessProbe:
failureThreshold: 3 failureThreshold: 3
...@@ -73,16 +85,16 @@ spec: ...@@ -73,16 +85,16 @@ spec:
path: /q/health/live path: /q/health/live
port: 8080 port: 8080
scheme: HTTP scheme: HTTP
initialDelaySeconds: 0 initialDelaySeconds: 2
periodSeconds: 30 periodSeconds: 10
successThreshold: 1 successThreshold: 1
timeoutSeconds: 10 timeoutSeconds: 10
name: policy name: policyservice
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http
protocol: TCP protocol: TCP
- containerPort: 9000 - containerPort: 6060
name: grpc-server name: grpc-server
protocol: TCP protocol: TCP
readinessProbe: readinessProbe:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment