kuberetes config

######################################
# THIS IS DEVELOPMENT LIKE DOCKERFILE
######################################
apiVersion: apps/v1
kind: Deployment
metadata:
  name: proxy-server-development
  labels:
    environment: development
    app: nginx
spec:
  replicas: 5
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
        - name: proxy
          image: nginx:1.7.9
          ports:
            - containerPort: 80
---
######################################
# THIS IS SERVICE LIKE DOCKER COMPOSE
######################################
apiVersion: v1
kind: Service
metadata:
  name: proxy-server-service
spec:
  type: LoadBalancer
  selector:
    app: nginx
  ports:
    - protocol: TCP
      port: 8080
      targetPort: 80
Restu Wahyu Saputra