diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-07-23 14:52:20 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-07-23 14:52:20 +0200 |
commit | 0cad13cbb182ba4f98648be93db0b1e13e952fc8 (patch) | |
tree | f474b1ec3b30fff2fa889deb8c38161cefdb0225 /k8s | |
parent | 67f5d1008eef96f13dbf8910092155b7aa1bcee4 (diff) | |
download | k8s-sandbox-0cad13cbb182ba4f98648be93db0b1e13e952fc8.tar.gz k8s-sandbox-0cad13cbb182ba4f98648be93db0b1e13e952fc8.tar.bz2 k8s-sandbox-0cad13cbb182ba4f98648be93db0b1e13e952fc8.tar.xz k8s-sandbox-0cad13cbb182ba4f98648be93db0b1e13e952fc8.zip |
wip
Diffstat (limited to 'k8s')
-rw-r--r-- | k8s/db.yaml | 9 | ||||
-rw-r--r-- | k8s/mi.yaml | 107 |
2 files changed, 0 insertions, 116 deletions
diff --git a/k8s/db.yaml b/k8s/db.yaml deleted file mode 100644 index e97ca94..0000000 --- a/k8s/db.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: membership-import-admin -data: - # mi-gateway - username: bWktZ2F0ZXdheQ== - password: bWktZ2F0ZXdheQ== diff --git a/k8s/mi.yaml b/k8s/mi.yaml deleted file mode 100644 index 75b9254..0000000 --- a/k8s/mi.yaml +++ /dev/null @@ -1,107 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: mi-processor-deployment -spec: - replicas: 1 - selector: - matchLabels: - app: mi-processor-pod - template: - metadata: - labels: - app: mi-processor-pod - spec: - containers: - - name: mi-processor - image: trygvis/mi-processor:latest - ports: - - containerPort: 8080 - -# volumeMounts: -# - name: pgpass -# mountPath: /secret/pgpass -# volumes: -# - name: pgpass -# secret: -# secretName: membership-import-admin - ---- -kind: Service -apiVersion: v1 -metadata: - name: pg -spec: - type: ClusterIP - ports: - - port: 5432 - targetPort: 5432 - ---- -kind: Endpoints -apiVersion: v1 -metadata: - name: pg -subsets: - - addresses: - - ip: 10.88.80.3 - ports: - - port: 5432 - ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: mi-gateway-deployment -spec: - replicas: 3 - selector: - matchLabels: - app: mi-gateway-pod - template: - metadata: - labels: - app: mi-gateway-pod - spec: - containers: - - name: mi-gateway - image: trygvis/mi-gateway:latest - ports: - - containerPort: 8080 - env: - - name: PGDATABASE - value: iqey - - name: PGUSER - valueFrom: - secretKeyRef: - name: membership-import-admin - key: username - - name: PGPASSWORD - valueFrom: - secretKeyRef: - name: membership-import-admin - key: password - - name: PGHOST - value: pg.default.svc.cluster.local - -# volumeMounts: -# - name: pgpass -# mountPath: /secret/pgpass -# volumes: -# - name: pgpass -# secret: -# secretName: membership-import-admin - ---- -apiVersion: v1 -kind: Service -metadata: - name: mi-gateway-service -spec: - selector: - app: mi-gateway-pod - type: LoadBalancer - ports: - - protocol: TCP - port: 80 - targetPort: 8080 |