iac/clusters/brusnika-stage/test-service.yaml

44 lines
707 B
YAML

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