mirror of
https://github.com/acedemand/kubernetes-essentials.git
synced 2021-08-24 18:29:57 +03:00
Readme
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -19,7 +19,7 @@ spec:
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 100%
|
||||
maxUnavailable: 100%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
kind: Endpoints
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: external-ip-database
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: 192.168.0.1
|
||||
ports:
|
||||
- port: 3306
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user