Added k8s stuffs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-11-17 22:42:03 +01:00
parent f45ca8b151
commit cf530e3603

45
k8s/deploy.yaml Normal file
View File

@ -0,0 +1,45 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: birb-latency-testpoint
namespace: birbnetes
labels:
app: birb-latency-testpoint
spec:
replicas: 1
selector:
matchLabels:
app: birb-latency-testpoint
strategy:
type: Recreate
template:
metadata:
labels:
app: birb-latency-testpoint
spec:
containers:
- name: frontend
image: registry.kmlabz.com/birbnetes/birb_latency_testpoint
imagePullPolicy: Always
ports:
- containerPort: 80
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: birb-latency-testpoint-svc
namespace: birbnetes
labels:
app: birb-latency-testpoint
spec:
ports:
- name: birb-latency-testpoint
port: 80
targetPort: 80
protocol: TCP
selector:
app: birb-latency-testpoint
type: ClusterIP