Skip to content

Commit

Permalink
Update yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWahlin committed Sep 3, 2019
1 parent 6395521 commit a655205
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .k8s/mongo.deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ volumeBindingMode: WaitForFirstConsumer

---

# Note: While a local storage PV works, going with a more durable solution (NFS, cloud option, etc.) is recommended
# Adding this for demo purposes to run on Docker Desktop Kubernetes since it only supports a single Node
# Note: While a local storage PV works, going with a more durable solution
# (NFS, cloud option, etc.) is recommended
# Adding this for demo purposes to run on Docker Desktop Kubernetes since it
# only supports a single Node
# https://kubernetes.io/blog/2018/04/13/local-persistent-volumes-beta/
apiVersion: v1
kind: PersistentVolume
Expand Down Expand Up @@ -86,7 +88,8 @@ spec:
labels:
app: mongo
spec:
# Can uncomment following lines if on Mac/Linux (issue on Docker for Windows prevents this from working)
# Can uncomment following lines if on Mac/Linux
# (issue on Docker for Windows prevents this from working)
# volumes:
# - name: mongo-volume
# persistentVolumeClaim:
Expand Down Expand Up @@ -135,7 +138,7 @@ spec:
name: mongo
ports:
- containerPort: 27017
resources: {}
resources:
# Can uncomment following lines if on Mac/Linux (issue on Docker for Windows prevents this from working)
# volumeMounts:
# - name: mongo-volume
Expand Down
2 changes: 1 addition & 1 deletion .k8s/nginx.deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ spec:
ports:
- containerPort: 80
- containerPort: 443
resources: {}
resources:
2 changes: 1 addition & 1 deletion .k8s/node.deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ spec:
name: node-codewithdan
ports:
- containerPort: 8080
resources: {}
resources:
2 changes: 1 addition & 1 deletion .k8s/redis.deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ spec:
name: redis
ports:
- containerPort: 6379
resources: {}
resources:

0 comments on commit a655205

Please sign in to comment.