This commit is contained in:
Pamir Erdem
2018-10-01 00:14:07 +03:00
parent 5594f41944
commit f208171c05
4 changed files with 4 additions and 38 deletions

View File

@@ -17,10 +17,7 @@ spec:
values:
- frontend
strategy:
rollingUpdate:
maxSurge: 100%
maxUnavailable: 25%
type: RollingUpdate
type: Recreate
template:
metadata:
creationTimestamp: null
@@ -32,7 +29,7 @@ spec:
- env:
- name: GET_HOSTS_FROM
value: dns
image: gcr.io/google_samples/gb-frontend:v3
image: gcr.io/google_samples/gb-frontend:v2
imagePullPolicy: IfNotPresent
name: php-redis
ports:
@@ -48,4 +45,4 @@ spec:
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
terminationGracePeriodSeconds: 30

View File

@@ -19,7 +19,7 @@ spec:
strategy:
rollingUpdate:
maxSurge: 100%
maxUnavailable: 100%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:

View File

@@ -1,9 +0,0 @@
kind: Endpoints
apiVersion: v1
metadata:
name: external-ip-database
subsets:
- addresses:
- ip: 192.168.0.1
ports:
- port: 3306

View File

@@ -1,22 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: database
spec:
ports:
- port: 1433
targetPort: 1433
protocol: TCP
---
# Because this service has no selector, the corresponding Endpoints
# object will not be created. You can manually map the service to
# your own specific endpoints:
kind: Endpoints
apiVersion: v1
metadata:
name: database
subsets:
- addresses:
- ip: "192.168.1.103"
ports:
- port: 1433