diff --git a/kube/rc.yaml b/kube/rc.yaml index 6739ebf..810f9e8 100644 --- a/kube/rc.yaml +++ b/kube/rc.yaml @@ -3,32 +3,22 @@ kind: ReplicationController metadata: name: yesodweb labels: - name: yesodweb + app: yesodweb spec: - replicas: 2 - selector: - name: yesodweb + replicas: 1 template: metadata: labels: - name: yesodweb + app: yesodweb spec: containers: - name: yesodweb - image: snoyberg/yesodweb - resources: - limits: - memory: 800Mi - imagePullPolicy: Always + image: snoyberg/yesodweb:latest command: ["yesodweb", "development"] workingDir: /app ports: - - containerPort: 3001 - hostPort: 3001 + - name: http + containerPort: 3001 env: - name: PORT value: "3001" - livenessProbe: - httpGet: - path: / - port: 3001 diff --git a/kube/service.yaml b/kube/service.yaml index 5e4eb2a..e074e10 100644 --- a/kube/service.yaml +++ b/kube/service.yaml @@ -3,12 +3,12 @@ kind: Service metadata: name: yesodweb labels: - name: yesodweb + app: yesodweb spec: type: LoadBalancer ports: - - port: 80 - targetPort: 3001 - protocol: TCP + - name: http + port: 80 + targetPort: http selector: - name: yesodweb + app: yesodweb