mirror of
https://gitlab.com/shouptech/flux.git
synced 2026-02-03 22:19:43 +00:00
Add echoserver
This commit is contained in:
parent
6b321acbe6
commit
75ec67e258
1 changed files with 28 additions and 0 deletions
28
workloads/echoserver.xml
Normal file
28
workloads/echoserver.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: echoserver
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
name: echoserver
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: k8s.gcr.io/echoserver:1.4
|
||||||
|
imagePullPolicy: Always
|
||||||
|
name: echoserver
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: echoserver
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
name: echoserver
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
Loading…
Add table
Reference in a new issue