This commit is contained in:
parent
c71371372d
commit
4deaf74bb9
28
k8s/deployment.yml
Normal file
28
k8s/deployment.yml
Normal 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
17
k8s/service.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user