Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated for k8s version greater than 1.16 #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions kubernetes-desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ Of note is that the database service is a headless service set by `clusterIp: No
The database Deployment declares the desired state of the pod backing the Service.

```
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: db
spec:
selector:
matchLabels:
app: db
template:
metadata:
labels:
Expand Down Expand Up @@ -217,13 +220,16 @@ spec:
selector:
app: vote
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote
labels:
app: vote
spec:
selector:
matchLabels:
app: vote
replicas: 2
template:
metadata:
Expand Down
22 changes: 17 additions & 5 deletions kubernetes-desktop/kube-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
selector:
app: redis
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
Expand Down Expand Up @@ -54,11 +54,14 @@ spec:
selector:
app: db
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: db
spec:
selector:
matchLabels:
app: db
template:
metadata:
labels:
Expand Down Expand Up @@ -99,13 +102,16 @@ spec:
selector:
app: result
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: result
labels:
app: result
spec:
selector:
matchLabels:
app: result
replicas: 1
template:
metadata:
Expand Down Expand Up @@ -135,13 +141,16 @@ spec:
selector:
app: vote
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote
labels:
app: vote
spec:
selector:
matchLabels:
app: vote
replicas: 2
template:
metadata:
Expand All @@ -168,13 +177,16 @@ spec:
selector:
app: worker
---
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: worker
name: worker
spec:
selector:
matchLabels:
app: worker
replicas: 1
template:
metadata:
Expand Down