mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
82 lines
1.6 KiB
YAML
82 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
|