mirror of
https://github.com/postmannen/ctrl.git
synced 2025-01-07 20:59:16 +00:00
b1a5406598
commit ec6ea8158d5051010c25ef848a7b7b91fa40efef
Author: postmannen <postmannen@gmail.com>
Date: Tue Nov 19 03:48:03 2024 +0100
Removed remaining use of REQ in naming
commit b80bb06a47cf564a88d684c1d1d4fe2e408c3c0f
Author: postmannen <postmannen@gmail.com>
Date: Mon Nov 18 23:15:32 2024 +0100
removed REQ in more variable names, including methods
commit af7f6fef3e0093312d2ca12740f7b27840797800
Author: postmannen <postmannen@gmail.com>
Date: Mon Nov 18 22:54:40 2024 +0100
renamed all the method type variables
commit e657ecb37f
Author: postmannen <postmannen@gmail.com>
Date: Mon Nov 18 22:32:13 2024 +0100
renamed methods constant values and removed REQ
81 lines
1.6 KiB
YAML
81 lines
1.6 KiB
YAML
---
|
|
- toNodes:
|
|
- vbox1
|
|
method: cliCommand
|
|
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: console
|
|
ACKTimeout: 5
|
|
retries: 120
|
|
replyACKTimeout: 5
|
|
replyRetries: 3
|
|
methodTimeout: 100
|
|
directory: system
|
|
fileName: system.log
|