add kubernetes stuff
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2021-06-12 23:01:38 +02:00
parent c71371372d
commit 4deaf74bb9
2 changed files with 45 additions and 0 deletions

28
k8s/deployment.yml Normal file
View File

@ -0,0 +1,28 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: birbcontrol
namespace: birbnetes
labels:
app: birbcontrol
spec:
replicas: 1
selector:
matchLabels:
app: birbcontrol
strategy:
type: Recreate
template:
metadata:
labels:
app: birbcontrol
spec:
containers:
- name: frontend
image: registry.kmlabz.com/birbnetes/birbcontrol
imagePullPolicy: Always
ports:
- containerPort: 80
imagePullSecrets:
- name: regcred

17
k8s/service.yml Normal file
View File

@ -0,0 +1,17 @@
---
apiVersion: v1
kind: Service
metadata:
name: birbcontrol-svc
namespace: birbnetes
labels:
app: birbcontrol
spec:
ports:
- name: birbcontrol
port: 80
targetPort: 80
protocol: TCP
selector:
app: birbcontrol
type: ClusterIP