2015-10-02 02:35:53 +00:00
|
|
|
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:
|
Switch to k8s.gcr.io vanity domain
This is the 2nd attempt. The previous was reverted while we figured out
the regional mirrors (oops).
New plan: k8s.gcr.io is a read-only facade that auto-detects your source
region (us, eu, or asia for now) and pulls from the closest. To publish
an image, push k8s-staging.gcr.io and it will be synced to the regionals
automatically (similar to today). For now the staging is an alias to
gcr.io/google_containers (the legacy URL).
When we move off of google-owned projects (working on it), then we just
do a one-time sync, and change the google-internal config, and nobody
outside should notice.
We can, in parallel, change the auto-sync into a manual sync - send a PR
to "promote" something from staging, and a bot activates it. Nice and
visible, easy to keep track of.
2018-01-17 19:36:53 +00:00
|
|
|
- image: k8s.gcr.io/servicelb:0.1
|
2015-10-02 02:35:53 +00:00
|
|
|
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
|