main
parent
72ce3a9c03
commit
738d3a0269
4 changed files with 63 additions and 0 deletions
@ -0,0 +1,8 @@ |
||||
apiVersion: v1 |
||||
kind: ConfigMap |
||||
metadata: |
||||
name: auth-config |
||||
data: |
||||
DB_HOST: "auth-db-service" |
||||
DB_PORT: "9995" |
||||
APP_PORT: "9994" |
@ -0,0 +1,25 @@ |
||||
apiVersion: apps/v1 |
||||
kind: Deployment |
||||
metadata: |
||||
name: auth-application |
||||
labels: |
||||
app: auth-application |
||||
spec: |
||||
replicas: 3 |
||||
selector: |
||||
matchLabels: |
||||
app: auth-application |
||||
template: |
||||
metadata: |
||||
labels: |
||||
app: auth-application |
||||
spec: |
||||
containers: |
||||
- name: auth-application |
||||
image: slaventius/test3k_auth:latest |
||||
imagePullPolicy: Always |
||||
ports: |
||||
- containerPort: 9994 |
||||
envFrom: |
||||
- configMapRef: |
||||
name: auth-config |
@ -0,0 +1,16 @@ |
||||
apiVersion: networking.k8s.io/v1 |
||||
kind: Ingress |
||||
metadata: |
||||
name: auth-ingress |
||||
spec: |
||||
rules: |
||||
- host: www.test3k.com |
||||
http: |
||||
paths: |
||||
- path: /api |
||||
pathType: ImplementationSpecific |
||||
backend: |
||||
service: |
||||
name: auth-service |
||||
port: |
||||
number: 9993 |
@ -0,0 +1,14 @@ |
||||
apiVersion: v1 |
||||
kind: Service |
||||
metadata: |
||||
name: auth-service |
||||
labels: |
||||
app: auth-application |
||||
spec: |
||||
type: NodePort |
||||
selector: |
||||
app: auth-application |
||||
ports: |
||||
- protocol: TCP |
||||
port: 9993 |
||||
targetPort: 9994 |
Loading…
Reference in new issue