Commit 1b4cee10 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NFV-SDN'22:

- Created initial scenario deployment scripts and manifests
parent 99e0d57a
Loading
Loading
Loading
Loading
+40 −40
Changes for manifests/webuiservice.yaml: 40 added lines, 40 removed lines.
Original line number Diff line number Diff line
@@ -60,43 +60,43 @@ spec:
          limits:
            cpu: 700m
            memory: 1024Mi
      - name: grafana
        image: grafana/grafana:8.5.11
        imagePullPolicy: IfNotPresent
        ports:
          - containerPort: 3000
            name: http-grafana
            protocol: TCP
        env:
        - name: GF_SERVER_ROOT_URL
          value: "http://0.0.0.0:3000/grafana/"
        - name: GF_SERVER_SERVE_FROM_SUB_PATH
          value: "true"
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /robots.txt
            port: 3000
            scheme: HTTP
          initialDelaySeconds: 10
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 2
        livenessProbe:
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 10
          successThreshold: 1
          tcpSocket:
            port: 3000
          timeoutSeconds: 1
        resources:
          requests:
            cpu: 250m
            memory: 750Mi
          limits:
            cpu: 700m
            memory: 1024Mi
#      - name: grafana
#        image: grafana/grafana:8.5.11
#        imagePullPolicy: IfNotPresent
#        ports:
#          - containerPort: 3000
#            name: http-grafana
#            protocol: TCP
#        env:
#        - name: GF_SERVER_ROOT_URL
#          value: "http://0.0.0.0:3000/grafana/"
#        - name: GF_SERVER_SERVE_FROM_SUB_PATH
#          value: "true"
#        readinessProbe:
#          failureThreshold: 3
#          httpGet:
#            path: /robots.txt
#            port: 3000
#            scheme: HTTP
#          initialDelaySeconds: 10
#          periodSeconds: 30
#          successThreshold: 1
#          timeoutSeconds: 2
#        livenessProbe:
#          failureThreshold: 3
#          initialDelaySeconds: 30
#          periodSeconds: 10
#          successThreshold: 1
#          tcpSocket:
#            port: 3000
#          timeoutSeconds: 1
#        resources:
#          requests:
#            cpu: 250m
#            memory: 750Mi
#          limits:
#            cpu: 700m
#            memory: 1024Mi
---
apiVersion: v1
kind: Service
@@ -110,6 +110,6 @@ spec:
  - name: webui
    port: 8004
    targetPort: 8004
  - name: grafana
    port: 3000
    targetPort: 3000
#  - name: grafana
#    port: 3000
#    targetPort: 3000
+2 −0
Changes for src/tests/scenario2/.gitignore: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Add here your files containing confidential testbed details such as IP addresses, ports, usernames, passwords, etc.
descriptors_real.json

src/tests/scenario2/README.md

deleted100644 → 0
+0 −1
Changes for src/tests/scenario2/README.md: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
# Scenario 2 - ...
+14 −0
Changes for src/tests/scenario2/__init__.py: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Copyright 2021-2023 H2020 TeraFlow (https://www.teraflow-h2020.eu/)
#
# 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.
+32 −0
Changes for src/tests/scenario2/deploy_all.sh: 32 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/bash

# Delete old namespaces
kubectl delete namespace tfs-dom1 tfs-dom2 tfs-dom3 tfs-dom4

# Delete secondary ingress controllers
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom1.yaml
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom2.yaml
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom3.yaml
kubectl delete -f nfvsdn22/nginx-ingress-controller-dom4.yaml

# Create secondary ingress controllers
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom1.yaml
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom2.yaml
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom3.yaml
kubectl apply -f nfvsdn22/nginx-ingress-controller-dom4.yaml

# Deploy TFS for Domain 1
source nfvsdn22/deploy_specs_dom1.sh
./deploy.sh

# Deploy TFS for Domain 2
source nfvsdn22/deploy_specs_dom2.sh
./deploy.sh

# Deploy TFS for Domain 3
source nfvsdn22/deploy_specs_dom3.sh
./deploy.sh

# Deploy TFS for Domain 4
source nfvsdn22/deploy_specs_dom4.sh
./deploy.sh
Loading