fix(k8s): update the manifests for k8s 1.18 (#524)

Deployments are now in "apps/v1".
This commit is contained in:
Damien Rajon 2020-06-17 23:42:11 +02:00 committed by GitHub
parent e186d7004f
commit 50bb20ad58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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