diff --git a/doc/example-messages/k3s-delete-deployment.yaml b/doc/example-messages/k3s-delete-deployment.yaml new file mode 100644 index 0000000..8f31bfc --- /dev/null +++ b/doc/example-messages/k3s-delete-deployment.yaml @@ -0,0 +1,18 @@ +--- +- toNodes: + - vbox1 + method: REQCliCommand + methodArgs: + - "bash" + - "-c" + - | + kubectl delete -f test.yaml + + replyMethod: REQToConsole + ACKTimeout: 5 + retries: 120 + replyACKTimeout: 5 + replyRetries: 3 + methodTimeout: 100 + directory: system + fileName: system.log diff --git a/doc/example-messages/k3s-deploy.yaml b/doc/example-messages/k3s-deploy.yaml new file mode 100644 index 0000000..5dd6d91 --- /dev/null +++ b/doc/example-messages/k3s-deploy.yaml @@ -0,0 +1,81 @@ +--- +- toNodes: + - vbox1 + method: REQCliCommand + methodArgs: + - "bash" + - "-c" + - | + cat <<-"EOF" >test.yaml + --- + apiVersion: networking.k8s.io/v1 + kind: Ingress + metadata: + name: hello-world + annotations: + kubernetes.io/ingress.class: "traefik" + spec: + rules: + - http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: hello-world + port: + number: 80 + + --- + apiVersion: v1 + kind: Service + metadata: + name: hello-world + spec: + ports: + - port: 80 + protocol: TCP + selector: + app: hello-world + + --- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: hello-world-nginx + spec: + selector: + matchLabels: + app: hello-world + replicas: 3 + template: + metadata: + labels: + app: hello-world + spec: + containers: + - name: nginx + image: nginx + ports: + - containerPort: 80 + volumeMounts: + - name: hello-world-volume + mountPath: /usr/share/nginx/html + volumes: + - name: hello-world-volume + configMap: + name: hello-world + + + EOF + + kubectl apply -f test.yaml + + replyMethod: REQToConsole + ACKTimeout: 5 + retries: 120 + replyACKTimeout: 5 + replyRetries: 3 + methodTimeout: 100 + directory: system + fileName: system.log diff --git a/doc/example-messages/k3s-install.yaml b/doc/example-messages/k3s-install.yaml new file mode 100644 index 0000000..5538512 --- /dev/null +++ b/doc/example-messages/k3s-install.yaml @@ -0,0 +1,18 @@ +--- +- toNodes: + - vbox1 + method: REQCliCommandCont + methodArgs: + - "bash" + - "-c" + - | + curl -sfL https://get.k3s.io | sh - + + replyMethod: REQToConsole + ACKTimeout: 5 + retries: 3 + replyACKTimeout: 5 + replyRetries: 3 + methodTimeout: 120 + directory: system + fileName: system.log diff --git a/doc/example-messages/k3s-uninstall.yaml b/doc/example-messages/k3s-uninstall.yaml new file mode 100644 index 0000000..6a860fc --- /dev/null +++ b/doc/example-messages/k3s-uninstall.yaml @@ -0,0 +1,18 @@ +--- +- toNodes: + - vbox1 + method: REQCliCommandCont + methodArgs: + - "bash" + - "-c" + - | + k3s-uninstall.sh + + replyMethod: REQToConsole + ACKTimeout: 5 + retries: 3 + replyACKTimeout: 5 + replyRetries: 3 + methodTimeout: 120 + directory: system + fileName: system.log