Skip to content
Snippets Groups Projects
Commit efc7aa42 authored by Harald Mueller's avatar Harald Mueller
Browse files

Change namespace to codeco-swm...

parent b14875a9
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ Steps for getting a demo to run on a local Linux Helm environment and a local Ki ...@@ -76,7 +76,7 @@ Steps for getting a demo to run on a local Linux Helm environment and a local Ki
```bash ```bash
make chart make chart
helm install qostest --namespace=controllers-system --create-namespace tmp/helm helm install qostest --namespace=codeco-swm-controllers --create-namespace tmp/helm
``` ```
- Show network topology/ network links (Custom Resources) - Show network topology/ network links (Custom Resources)
......
...@@ -53,6 +53,7 @@ spec: ...@@ -53,6 +53,7 @@ spec:
args: ["cd /host/opt/cni/bin && wget https://github.com/containernetworking/plugins/releases/download/v1.0.1/cni-plugins-linux-amd64-v1.0.1.tgz -O cni-plugins-linux-amd64-v1.0.1.tgz && tar xzf cni-plugins-linux-amd64-v1.0.1.tgz"] args: ["cd /host/opt/cni/bin && wget https://github.com/containernetworking/plugins/releases/download/v1.0.1/cni-plugins-linux-amd64-v1.0.1.tgz -O cni-plugins-linux-amd64-v1.0.1.tgz && tar xzf cni-plugins-linux-amd64-v1.0.1.tgz"]
securityContext: securityContext:
privileged: true privileged: true
runAsUser: 0
volumeMounts: volumeMounts:
- name: cnibin - name: cnibin
mountPath: /host/opt/cni/bin mountPath: /host/opt/cni/bin
......
...@@ -7,7 +7,7 @@ global: ...@@ -7,7 +7,7 @@ global:
tag: latest tag: latest
pullSecrets: [] pullSecrets: []
credentials: {} credentials: {}
qosNamespace: controllers-system qosNamespace: codeco-swm-controllers
# Default values for controller. # Default values for controller.
serviceAccount: serviceAccount:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{{- define "namespace" -}} {{- define "namespace" -}}
{{ cat "network-" . "-namespace" | lower | nospace }} {{ cat "codeco-nw-" . "-ns" | lower | nospace }}
{{- end }} {{- end }}
{{- define "role" -}} {{- define "role" -}}
......
...@@ -9,7 +9,7 @@ global: ...@@ -9,7 +9,7 @@ global:
tag: latest tag: latest
pullSecrets: [] pullSecrets: []
credentials: {} credentials: {}
qosNamespace: controllers-system qosNamespace: codeco-swm-controllers
serviceAccount: serviceAccount:
create: true create: true
......
...@@ -7,7 +7,7 @@ global: ...@@ -7,7 +7,7 @@ global:
tag: latest tag: latest
pullSecrets: [] pullSecrets: []
credentials: {} credentials: {}
qosNamespace: controllers-system qosNamespace: codeco-swm-controllers
# Default values for solver. # Default values for solver.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
global: global:
qosNamespace: controllers-system qosNamespace: codeco-swm-controllers
network: network:
image: image:
repositoryPrefix: hecodeco/swm- repositoryPrefix: hecodeco/swm-
...@@ -56,4 +56,4 @@ solver: ...@@ -56,4 +56,4 @@ solver:
nsconfig: nsconfig:
namespaces: namespaces:
- kube-system - kube-system
- controllers-system - codeco-swm-controllers
...@@ -11,7 +11,7 @@ set -euo pipefail ...@@ -11,7 +11,7 @@ set -euo pipefail
# This is the path from where this is being called from to where the script lives. # This is the path from where this is being called from to where the script lives.
SCRIPTHOME=$(dirname $(realpath "$0")) SCRIPTHOME=$(dirname $(realpath "$0"))
SED=${SED:-"gsed"} # SED=${SED:-"gsed"}
DOCKERCONFIGJSON=${DOCKERCONFIGJSON:-"$HOME/.docker/config.json"} DOCKERCONFIGJSON=${DOCKERCONFIGJSON:-"$HOME/.docker/config.json"}
# When you set this, make sure you've compiled the code for a compatible # When you set this, make sure you've compiled the code for a compatible
...@@ -22,7 +22,8 @@ NODEK8SVERSION=${NODEK8SVERSION:-v1.23.1} ...@@ -22,7 +22,8 @@ NODEK8SVERSION=${NODEK8SVERSION:-v1.23.1}
CONFIGDIR="demo" CONFIGDIR="demo"
$SED --follow-symlinks -i "s/image: kindest\/node:v[[:digit:]]\+.[[:digit:]]\+.[[:digit:]]\+/image: kindest\/node:$NODEK8SVERSION/" $SCRIPTHOME/config/${CONFIGDIR}/cluster-config.yaml # $SED --follow-symlinks -i "s/image: kindest\/node:v[[:digit:]]\+.[[:digit:]]\+.[[:digit:]]\+/image: kindest\/node:$NODEK8SVERSION/" $SCRIPTHOME/config/${CONFIGDIR}/cluster-config.yaml
sed --follow-symlinks -i "s/image: kindest\/node:v[[:digit:]]\+.[[:digit:]]\+.[[:digit:]]\+/image: kindest\/node:$NODEK8SVERSION/" $SCRIPTHOME/config/${CONFIGDIR}/cluster-config.yaml
echo "creating ${CONFIGDIR} qos-scheduling cluster using Kubernetes version $NODEK8SVERSION" echo "creating ${CONFIGDIR} qos-scheduling cluster using Kubernetes version $NODEK8SVERSION"
...@@ -40,5 +41,3 @@ for n in $NODES; do ...@@ -40,5 +41,3 @@ for n in $NODES; do
kubectl label --overwrite nodes $n $NODE_LABEL_PREFIX.$n= kubectl label --overwrite nodes $n $NODE_LABEL_PREFIX.$n=
done done
kubectl label --overwrite node c1 $NODE_LABEL_PREFIX.restapidb=
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