Add test service in test namespace for brusnika-stage
This commit is contained in:
parent
38bf5c91ca
commit
b29d519854
43
clusters/brusnika-stage/test-service.yaml
Normal file
43
clusters/brusnika-stage/test-service.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: test
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: test-http
|
||||||
|
namespace: test
|
||||||
|
labels:
|
||||||
|
app: test-http
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: test-http
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: test-http
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: http-echo
|
||||||
|
image: hashicorp/http-echo:1.0.0
|
||||||
|
args:
|
||||||
|
- "-text=ok from flux"
|
||||||
|
ports:
|
||||||
|
- containerPort: 5678
|
||||||
|
name: http
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: test-http
|
||||||
|
namespace: test
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: test-http
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 5678
|
||||||
Loading…
Reference in New Issue
Block a user