Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example: External Processing support #5868

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 177 additions & 0 deletions examples/external-processing/01-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: extproc-test

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: http-echo
namespace: extproc-test
spec:
replicas: 1
selector:
matchLabels:
app: http-echo
template:
metadata:
labels:
app: http-echo
spec:
containers:
- name: http-echo
image: hashicorp/http-echo
args:
- '-text=hello http-echo'
ports:
- name: http
containerPort: 5678
protocol: TCP
imagePullPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: http-echo2
namespace: extproc-test
spec:
replicas: 1
selector:
matchLabels:
app: http-echo2
template:
metadata:
labels:
app: http-echo2
spec:
containers:
- name: http-echo2
image: hashicorp/http-echo
args:
- '-text=hello http-echo2'
ports:
- name: http
containerPort: 5678
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: http-echo3
namespace: extproc-test
spec:
replicas: 1
selector:
matchLabels:
app: http-echo3
template:
metadata:
labels:
app: http-echo3
spec:
containers:
- name: http-echo3
image: hashicorp/http-echo
args:
- '-text=hello http-echo3'
ports:
- name: http
containerPort: 5678
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: http-echo4
namespace: extproc-test
spec:
replicas: 1
selector:
matchLabels:
app: http-echo4
template:
metadata:
labels:
app: http-echo4
spec:
containers:
- name: http-echo
image: hashicorp/http-echo
args:
- '-text=hello http-echo4'
ports:
- name: http
containerPort: 5678
protocol: TCP
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: http-echo-service
namespace: extproc-test
labels:
app: http-echo
spec:
ports:
- name: http
protocol: TCP
port: 5678
targetPort: 5678
selector:
app: http-echo
type: NodePort

---
apiVersion: v1
kind: Service
metadata:
name: http-echo-service2
namespace: extproc-test
labels:
app: http-echo2
spec:
ports:
- name: http
protocol: TCP
port: 5678
targetPort: 5678
selector:
app: http-echo2
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: http-echo-service3
namespace: extproc-test
labels:
app: http-echo3
spec:
ports:
- name: http
protocol: TCP
port: 5678
targetPort: 5678
selector:
app: http-echo3
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: http-echo-service4
namespace: extproc-test
labels:
app: http-echo4
spec:
ports:
- name: http
protocol: TCP
port: 5678
targetPort: 5678
selector:
app: http-echo4
type: NodePort

Check failure on line 177 in examples/external-processing/01-upstream.yaml

View workflow job for this annotation

GitHub Actions / codegen

177:17 [new-line-at-end-of-file] no new line character at the end of file
202 changes: 202 additions & 0 deletions examples/external-processing/02-extproc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extproc
namespace: extproc-test
labels:
app: extproc
spec:
replicas: 1
selector:
matchLabels:
app: extproc
template:
metadata:
labels:
app: extproc
spec:
containers:
- name: extproc
image: tempvar/extproc:v0.0.1
command:
- extproc
args:
- timer
ports:
- name: grpc
containerPort: 50051
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extproc2
namespace: extproc-test
labels:
app: extproc2
spec:
replicas: 1
selector:
matchLabels:
app: extproc2
template:
metadata:
labels:
app: extproc2
spec:
containers:
- name: extproc
image: tempvar/extproc:v0.0.1
command:
- extproc
args:
- noop
ports:
- name: grpc
containerPort: 50051
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extproc3
namespace: extproc-test
labels:
app: extproc3
spec:
replicas: 1
selector:
matchLabels:
app: extproc3
template:
metadata:
labels:
app: extproc3
spec:
containers:
- name: extproc
image: tempvar/extproc:v0.0.1
command:
- extproc
args:
- echo
ports:
- name: grpc
containerPort: 50051
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always
---

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extproc4
namespace: extproc-test
labels:
app: extproc4
spec:
replicas: 1
selector:
matchLabels:
app: extproc4
template:
metadata:
labels:
app: extproc4
spec:
containers:
- name: extproc
image: tempvar/extproc:v0.0.1
command:
- extproc
args:
- trivial
ports:
- name: grpc
containerPort: 50051
protocol: TCP
imagePullPolicy: Always
restartPolicy: Always

---
apiVersion: v1
kind: Service
metadata:
name: extproc-service
namespace: extproc-test
labels:
app: extproc
spec:
ports:
- name: grpc
protocol: TCP
port: 50051
targetPort: 50051
selector:
app: extproc
type: NodePort

---
apiVersion: v1
kind: Service
metadata:
name: extproc-service2
namespace: extproc-test
labels:
app: extproc2
spec:
ports:
- name: grpc
protocol: TCP
port: 50051
targetPort: 50051
selector:
app: extproc2
type: NodePort

---
apiVersion: v1
kind: Service
metadata:
name: extproc-service3
namespace: extproc-test
labels:
app: extproc3
spec:
ports:
- name: grpc
protocol: TCP
port: 50051
targetPort: 50051
selector:
app: extproc3
type: NodePort

---
apiVersion: v1
kind: Service
metadata:
name: extproc-service4
namespace: extproc-test
labels:
app: extproc4
spec:
ports:
- name: grpc
protocol: TCP
port: 50051
targetPort: 50051
selector:
app: extproc4
type: NodePort

---
Loading
Loading