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
|
||||
metadata:
|
||||
name: gorush
|
||||
namespace: gorush
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gorush
|
||||
tier: frontend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
@ -1,9 +1,14 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: redis
|
||||
namespace: gorush
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: redis
|
||||
role: master
|
||||
tier: backend
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
|
|
|
@ -12,8 +12,13 @@ spec:
|
|||
tier: frontend
|
||||
# if your cluster supports it, uncomment the following to automatically create
|
||||
# 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
|
||||
#
|
||||
# if you want gorush to be accessible only within the cluster
|
||||
# type: ClusterIP
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
|
|
Loading…
Reference in New Issue