8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
kind: ReplicationController
|
|
apiVersion: v1
|
|
metadata:
|
|
name: service-loadbalancer
|
|
labels:
|
|
app: service-loadbalancer
|
|
version: v1
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
app: service-loadbalancer
|
|
version: v1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: service-loadbalancer
|
|
version: v1
|
|
spec:
|
|
containers:
|
|
- image: gcr.io/google_containers/servicelb:0.1
|
|
imagePullPolicy: Always
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8081
|
|
scheme: HTTP
|
|
initialDelaySeconds: 30
|
|
timeoutSeconds: 5
|
|
name: haproxy
|
|
ports:
|
|
# All http services
|
|
- containerPort: 80
|
|
hostPort: 80
|
|
protocol: TCP
|
|
# nginx https
|
|
- containerPort: 443
|
|
hostPort: 8080
|
|
protocol: TCP
|
|
# mysql
|
|
- containerPort: 3306
|
|
hostPort: 3306
|
|
protocol: TCP
|
|
# haproxy stats
|
|
- containerPort: 1936
|
|
hostPort: 1936
|
|
protocol: TCP
|
|
resources: {}
|
|
args:
|
|
- --tcp-services=mysql:3306,nginxsvc:443
|