Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Full description is empty for this repo.

Docker Pull Command
Owner
hielkefe

Comments (1)
hielkefe
a year ago

apiVersion: v1
kind: Service
metadata:
  name: postgres
  labels:
    app: postgres
    tier: backend
spec:
  type: NodePort
  ports:
  - port: 5432
    targetPort: 5432
    nodePort: 30543
  selector:
    app: postgres
    tier: backend
---
apiVersion: v1
kind: Service
metadata:
  name: frontend
  labels:
    app: demo
    tier: frontend
spec:
  type: NodePort
  ports:
  - port: 8080
    targetPort: 8080
    nodePort: 30080
  selector:
    app: demo
    tier: frontend
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: postgres
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: postgres
        tier: backend
    spec:
      containers:
      - name: master
        image: hielkefe/postgres-webscale
        ports:
        - containerPort: 5432
-----
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: demo
spec:
  replicas: 2
  template:
    metadata:
      labels:
        app: demo
        tier: frontend
    spec:
      containers:
      - name: master
        image: hielkefe/postgres-demo:4.0.0
        env:
          - name: GET_HOSTS_FROM
            value: dns
        ports:
        - containerPort: 8080