main
parent
bbed4a1c8f
commit
d3c6164398
3 changed files with 47 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: auth-db-config |
||||
data: |
||||
KAFKA_HOST: "37.143.12.169" |
||||
KAFKA_PORT: "9092" |
||||
APP_PORT: "9995" |
@ -0,0 +1,25 @@ |
||||
apiVersion: apps/v1 |
||||
kind: Deployment |
||||
metadata: |
||||
name: auth-db-application |
||||
labels: |
||||
app: auth-db-application |
||||
spec: |
||||
replicas: 1 |
||||
selector: |
||||
matchLabels: |
||||
app: auth-db-application |
||||
template: |
||||
metadata: |
||||
labels: |
||||
app: auth-db-application |
||||
spec: |
||||
containers: |
||||
- name: auth-db |
||||
image: slaventius/test3k_auth_db:latest |
||||
imagePullPolicy: Always |
||||
ports: |
||||
- containerPort: 9995 |
||||
envFrom: |
||||
- configMapRef: |
||||
name: auth-db-config |
@ -0,0 +1,14 @@ |
||||
apiVersion: v1 |
||||
kind: Service |
||||
metadata: |
||||
name: auth-db-service |
||||
labels: |
||||
app: auth-db-application |
||||
spec: |
||||
type: NodePort |
||||
selector: |
||||
app: auth-db-application |
||||
ports: |
||||
- protocol: TCP |
||||
port: 9995 |
||||
targetPort: 9995 |
Loading…
Reference in new issue