Last active
March 7, 2018 04:57
-
-
Save raykao/c7cc64fab297d02412b7bea860132eea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: bobble | |
labels: | |
name: bobble | |
spec: | |
type: LoadBalancer | |
ports: | |
- name: http | |
port: 80 | |
targetPort: 3000 | |
selector: | |
name: bobble-app | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: bobble-deploy | |
labels: | |
name: bobble-app | |
spec: | |
replicas: 1 | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 1 | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
name: bobble-app | |
spec: | |
containers: | |
- image: kevingbb/bobble | |
name: bobble-app-cntnr | |
resources: | |
requests: | |
cpu: "20m" | |
memory: "55M" | |
ports: | |
- containerPort: 3000 | |
name: bobble-app | |
imagePullPolicy: Always | |
restartPolicy: Always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment