create project structure
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
21
k8s/configmap.yaml
Normal file
21
k8s/configmap.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: cnc-service
|
||||
labels:
|
||||
app: cnc-service
|
||||
namespace: birbnetes
|
||||
data:
|
||||
SENTRY_DSN: https://3515f6d0619b44a98f598edac480df02@sentry.kmlabz.com/22
|
||||
RELEASE_ID: birb-k8s
|
||||
CNC_SERVICE_RELEASEMODE: release
|
||||
CNC_RABBITMQ_HOSTNAME: birb-rabbitmq
|
||||
CNC_RABBITMQ_EXCHANGE: "wave"
|
||||
CNC_RABBITMQ_QUEUE: wave-ready
|
||||
CNC_RABBITMQ_USERNAME: user
|
||||
CNC_RABBITMQ_PASSWORD: 1wZVQnP5vy
|
||||
CNC_POSTGRES_HOSTNAME: cnc-postgres
|
||||
CNC_POSTGRES_USERNAME: cnc-service
|
||||
CNC_POSTGRES_PASSWORD: cnc-service-supersecret
|
||||
CNC_POSTGRES_DB: cnc-service
|
||||
CNC_STORAGE_HOSTNAME: storage-service
|
29
k8s/deployment.yaml
Normal file
29
k8s/deployment.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cnc-service
|
||||
namespace: birbnetes
|
||||
labels:
|
||||
app: cnc-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: cnc-service
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: cnc-service
|
||||
spec:
|
||||
containers:
|
||||
- name: input-service
|
||||
image: registry.kmlabz.com/birbnetesgit/cnc-service
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: cnc-service
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
16
k8s/service.yaml
Normal file
16
k8s/service.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cnc-service
|
||||
namespace: birbnetes
|
||||
labels:
|
||||
app: cnc-service
|
||||
spec:
|
||||
ports:
|
||||
- name: cnc-service
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: cnc-service
|
||||
type: ClusterIP
|
Reference in New Issue
Block a user