Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • tfs/controller
1 result
Show changes
Commits on Source (4)
...@@ -18,12 +18,6 @@ ...@@ -18,12 +18,6 @@
# Read deployment settings # Read deployment settings
######################################################################################################################## ########################################################################################################################
# ----- Redeploy All ------------------------------------------------------------
# If not already set, enables all components redeployment
export REDEPLOYALL=${REDEPLOYALL:-""}
# ----- TeraFlowSDN ------------------------------------------------------------ # ----- TeraFlowSDN ------------------------------------------------------------
# If not already set, set the URL of the Docker registry where the images will be uploaded to. # If not already set, set the URL of the Docker registry where the images will be uploaded to.
......
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
# Read deployment settings # Read deployment settings
######################################################################################################################## ########################################################################################################################
# ----- Redeploy All ------------------------------------------------------------
# If not already set, enables all components redeployment
export REDEPLOYALL=${REDEPLOYALL:-""}
# If not already set, set the namespace where CockroackDB will be deployed. # If not already set, set the namespace where CockroackDB will be deployed.
export CRDB_NAMESPACE=${CRDB_NAMESPACE:-"crdb"} export CRDB_NAMESPACE=${CRDB_NAMESPACE:-"crdb"}
...@@ -365,7 +360,7 @@ function crdb_drop_database_cluster() { ...@@ -365,7 +360,7 @@ function crdb_drop_database_cluster() {
} }
if [ "$CRDB_DEPLOY_MODE" == "single" ]; then if [ "$CRDB_DEPLOY_MODE" == "single" ]; then
if [ "$CRDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then if [ "$CRDB_REDEPLOY" == "YES" ]; then
crdb_undeploy_single crdb_undeploy_single
fi fi
...@@ -375,7 +370,7 @@ if [ "$CRDB_DEPLOY_MODE" == "single" ]; then ...@@ -375,7 +370,7 @@ if [ "$CRDB_DEPLOY_MODE" == "single" ]; then
crdb_drop_database_single crdb_drop_database_single
fi fi
elif [ "$CRDB_DEPLOY_MODE" == "cluster" ]; then elif [ "$CRDB_DEPLOY_MODE" == "cluster" ]; then
if [ "$CRDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then if [ "$CRDB_REDEPLOY" == "YES" ]; then
crdb_undeploy_cluster crdb_undeploy_cluster
fi fi
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
# Read deployment settings # Read deployment settings
######################################################################################################################## ########################################################################################################################
# ----- Redeploy All ------------------------------------------------------------
# If not already set, enables all components redeployment
export REDEPLOYALL=${REDEPLOYALL:-""}
# If not already set, set the namespace where NATS will be deployed. # If not already set, set the namespace where NATS will be deployed.
export NATS_NAMESPACE=${NATS_NAMESPACE:-"nats"} export NATS_NAMESPACE=${NATS_NAMESPACE:-"nats"}
...@@ -224,7 +220,7 @@ function nats_undeploy() { ...@@ -224,7 +220,7 @@ function nats_undeploy() {
echo echo
} }
if [ "$NATS_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then if [ "$NATS_REDEPLOY" == "YES" ]; then
nats_undeploy nats_undeploy
fi fi
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
# Read deployment settings # Read deployment settings
######################################################################################################################## ########################################################################################################################
# ----- Redeploy All ------------------------------------------------------------
# If not already set, enables all components redeployment
export REDEPLOYALL=${REDEPLOYALL:-""}
# If not already set, set the namespace where QuestDB will be deployed. # If not already set, set the namespace where QuestDB will be deployed.
export QDB_NAMESPACE=${QDB_NAMESPACE:-"qdb"} export QDB_NAMESPACE=${QDB_NAMESPACE:-"qdb"}
...@@ -181,7 +177,7 @@ function qdb_drop_tables() { ...@@ -181,7 +177,7 @@ function qdb_drop_tables() {
echo echo
} }
if [ "$QDB_REDEPLOY" == "YES" ] || [ "$REDEPLOYALL" == "YES" ]; then if [ "$QDB_REDEPLOY" == "YES" ]; then
qdb_undeploy qdb_undeploy
fi fi
......
...@@ -70,30 +70,30 @@ spec: ...@@ -70,30 +70,30 @@ spec:
selector: selector:
app: deviceservice app: deviceservice
ports: ports:
- name: grpc - name: grpc
protocol: TCP protocol: TCP
port: 2020 port: 2020
targetPort: 2020 targetPort: 2020
- name: metrics - name: metrics
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
--- ---
apiVersion: autoscaling/v2 # apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: deviceservice-hpa # name: deviceservice-hpa
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: deviceservice # name: deviceservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 10 # maxReplicas: 10
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
...@@ -65,30 +65,30 @@ spec: ...@@ -65,30 +65,30 @@ spec:
selector: selector:
app: monitoringservice app: monitoringservice
ports: ports:
- name: grpc - name: grpc
protocol: TCP protocol: TCP
port: 7070 port: 7070
targetPort: 7070 targetPort: 7070
- name: metrics - name: metrics
protocol: TCP protocol: TCP
port: 9192 port: 9192
targetPort: 9192 targetPort: 9192
--- ---
apiVersion: autoscaling/v2 # apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler # kind: HorizontalPodAutoscaler
metadata: # metadata:
name: monitoringservice-hpa # name: monitoringservice-hpa
spec: # spec:
scaleTargetRef: # scaleTargetRef:
apiVersion: apps/v1 # apiVersion: apps/v1
kind: Deployment # kind: Deployment
name: monitoringservice # name: monitoringservice
minReplicas: 1 # minReplicas: 1
maxReplicas: 10 # maxReplicas: 10
metrics: # metrics:
- type: Resource # - type: Resource
resource: # resource:
name: cpu # name: cpu
target: # target:
type: Utilization # type: Utilization
averageUtilization: 80 # averageUtilization: 80
...@@ -18,11 +18,11 @@ metadata: ...@@ -18,11 +18,11 @@ metadata:
name: tfs-ingress name: tfs-ingress
annotations: annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2 nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/limit-rps: '10' nginx.ingress.kubernetes.io/limit-rps: "50"
nginx.ingress.kubernetes.io/limit-connections: '10' nginx.ingress.kubernetes.io/limit-connections: "50"
nginx.ingress.kubernetes.io/proxy-connect-timeout: '10' nginx.ingress.kubernetes.io/proxy-connect-timeout: "50"
nginx.ingress.kubernetes.io/proxy-send-timeout: '10' nginx.ingress.kubernetes.io/proxy-send-timeout: "50"
nginx.ingress.kubernetes.io/proxy-read-timeout: '10' nginx.ingress.kubernetes.io/proxy-read-timeout: "50"
spec: spec:
rules: rules:
- http: - http:
......
...@@ -111,12 +111,12 @@ spec: ...@@ -111,12 +111,12 @@ spec:
selector: selector:
app: webuiservice app: webuiservice
ports: ports:
- name: webui - name: webui
port: 8004 port: 8004
targetPort: 8004 targetPort: 8004
- name: grafana - name: grafana
port: 3000 port: 3000
targetPort: 3000 targetPort: 3000
--- ---
apiVersion: autoscaling/v2 apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler kind: HorizontalPodAutoscaler
...@@ -130,12 +130,12 @@ spec: ...@@ -130,12 +130,12 @@ spec:
minReplicas: 1 minReplicas: 1
maxReplicas: 20 maxReplicas: 20
metrics: metrics:
- type: Resource - type: Resource
resource: resource:
name: cpu name: cpu
target: target:
type: Utilization type: Utilization
averageUtilization: 50 averageUtilization: 50
#behavior: #behavior:
# scaleDown: # scaleDown:
# stabilizationWindowSeconds: 30 # stabilizationWindowSeconds: 30
...@@ -13,12 +13,6 @@ ...@@ -13,12 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# ----- Redeploy All ------------------------------------------------------------
# If not already set, enables all components redeployment
export REDEPLOYALL=""
# ----- TeraFlowSDN ------------------------------------------------------------ # ----- TeraFlowSDN ------------------------------------------------------------
# Set the URL of the internal MicroK8s Docker registry where the images will be uploaded to. # Set the URL of the internal MicroK8s Docker registry where the images will be uploaded to.
......