gitops cluster configuration management
helmfile apply -f helm/helmfile.yaml -e dev # example envCREATE CR
kubectl apply -f - <<EOF
---
apiVersion: github.stuttgart-things.com/v1
kind: NetworkConfig
metadata:
name: networks-labul
namespace: clusterbook
spec:
networks:
10.31.101:
- 6:ASSIGNED:rahul-andre-rke2
- "7"
- "9"
- "10"
- 5:ASSIGNED:rancher-mgmt
10.31.102:
- "5"
- "6"
- "7"
- 8:ASSIGNED:unknown
- "9"
- "10"
10.31.103:
- 4:ASSIGNED:homerun-int2
- 5:ASSIGNED:labul-automation
- 6:ASSIGNED:labul-automation
- "17"
- "18"
- 19:ASSIGNED:labul-automation
- 8:ASSIGNED:fluxdev-3
- 9:ASSIGNED:fluxdev-3
- 16:ASSIGNED:homerun-dev
10.31.104:
- "5"
- "6"
- "7"
- "8"
- "9"
- "10"
EOFCLI
machineshop get \
--system=ips \
--destination=clusterbook.172.18.0.5.nip.io \
--path=10.31.103 \
--output=2machineshop push \
--target=ips \
--destination=clusterbook.172.18.0.5.nip.io \
--artifacts="10.31.103.9;10.31.103.10" \
--assignee=app1task: Available tasks for this project:
* branch: Create branch from main
* build: Install
* build-ko: Build image w/ KO
* commit: Commit + push code into branch
* lint: Lint Golang
* pr: Create pull request into main
* proto: Generate Go code from proto
* run: Run
* test: Test codePatrick Hermann, stuttgart-things 09/2024ENV FILE
.env file needed for Taskfile
cat <<EOF > .env
#LOAD_CONFIG_FROM=disk
#CONFIG_LOCATION=tests
#CONFIG_NAME=config.yaml
LOAD_CONFIG_FROM=cr
CONFIG_LOCATION=clusterbook #namespace
CONFIG_NAME=networks-labul #resource-name
SERVER_PORT=50051
#CLUSTERBOOK_SERVER=localhost:50051
#SECURE_CONNECTION=false
CLUSTERBOOK_SERVER=clusterbook.rke2.sthings-vsphere.labul.sva.de:443
SECURE_CONNECTION=true
EOFLicensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at 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.
