fix(k8s): update the manifests for k8s 1.18 (#524)
Deployments are now in "apps/v1".
This commit is contained in:
parent
e186d7004f
commit
50bb20ad58
|
@ -1,10 +1,14 @@
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: gorush
|
name: gorush
|
||||||
namespace: gorush
|
namespace: gorush
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: gorush
|
||||||
|
tier: frontend
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: redis
|
name: redis
|
||||||
namespace: gorush
|
namespace: gorush
|
||||||
spec:
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: redis
|
||||||
|
role: master
|
||||||
|
tier: backend
|
||||||
replicas: 1
|
replicas: 1
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -12,8 +12,13 @@ spec:
|
||||||
tier: frontend
|
tier: frontend
|
||||||
# if your cluster supports it, uncomment the following to automatically create
|
# if your cluster supports it, uncomment the following to automatically create
|
||||||
# an external load-balanced IP for the frontend service.
|
# an external load-balanced IP for the frontend service.
|
||||||
type: LoadBalancer
|
# type: LoadBalancer
|
||||||
|
#
|
||||||
|
# if you want to expose the service to the outside (without a load balancer in front)
|
||||||
# type: NodePort
|
# type: NodePort
|
||||||
|
#
|
||||||
|
# if you want gorush to be accessible only within the cluster
|
||||||
|
# type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
Loading…
Reference in New Issue