This commit is contained in:
24
k8s/deployment.yml
Normal file
24
k8s/deployment.yml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: api-gateway
|
||||
namespace: birbnetes
|
||||
labels:
|
||||
app: api-gateway
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: api-gateway
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: api-gateway
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.kmlabz.com/tormakris/api-gateway
|
||||
name: api-gateway
|
||||
ports:
|
||||
- containerPort: 8080
|
16
k8s/service.yml
Normal file
16
k8s/service.yml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: api-gateway
|
||||
namespace: birbnetes
|
||||
labels:
|
||||
app: api-gateway
|
||||
spec:
|
||||
ports:
|
||||
- name: api-gateway
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: api-gateway
|
||||
type: ClusterIP
|
Reference in New Issue
Block a user