1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-15 17:51:15 +00:00
ctrl/doc/example-messages/k3s-deploy.yaml
2022-03-14 03:44:49 +01:00

81 lines
1.6 KiB
YAML

---
- 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