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

View File

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

View File

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