make separate k8s namespace

This commit is contained in:
mykola2312 2024-03-16 10:28:49 +02:00
parent 4829b52979
commit d9efec5f7e
4 changed files with 12 additions and 3 deletions

6
k8s/00_namespace.yml Normal file
View file

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: mk-dl-bot
labels:
name: mk-dl-bot

View file

@ -5,6 +5,7 @@ metadata:
app: mk-dl-bot app: mk-dl-bot
service: bot service: bot
name: bot name: bot
namespace: mk-dl-bot
spec: spec:
replicas: 1 replicas: 1
selector: selector:

View file

@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
name: db name: db
namespace: mk-dl-bot
spec: spec:
selector: selector:
matchLabels: matchLabels:

View file

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: db-service name: db-service
namespace: mk-dl-bot
spec: spec:
selector: selector:
app: mk-dl-bot app: mk-dl-bot