forked from barak/tarpoon
Add glide.yaml and vendor deps
This commit is contained in:
parent
db918f12ad
commit
5b3d5e81bd
18880 changed files with 5166045 additions and 1 deletions
26
vendor/k8s.io/kubernetes/cluster/addons/registry/images/Dockerfile
generated
vendored
Normal file
26
vendor/k8s.io/kubernetes/cluster/addons/registry/images/Dockerfile
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright 2016 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
FROM haproxy:1.5
|
||||
MAINTAINER Muhammed Uluyol <uluyol@google.com>
|
||||
|
||||
RUN apt-get update && apt-get install -y dnsutils
|
||||
|
||||
ADD proxy.conf.insecure.in /proxy.conf.in
|
||||
ADD run_proxy.sh /usr/bin/run_proxy
|
||||
|
||||
RUN chown root:users /usr/bin/run_proxy
|
||||
RUN chmod 755 /usr/bin/run_proxy
|
||||
|
||||
CMD ["/usr/bin/run_proxy"]
|
||||
24
vendor/k8s.io/kubernetes/cluster/addons/registry/images/Makefile
generated
vendored
Normal file
24
vendor/k8s.io/kubernetes/cluster/addons/registry/images/Makefile
generated
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 2016 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
.PHONY: build push vet test clean
|
||||
|
||||
TAG = 0.3
|
||||
REPO = gcr.io/google_containers/kube-registry-proxy
|
||||
|
||||
build:
|
||||
docker build -t $(REPO):$(TAG) .
|
||||
|
||||
push:
|
||||
gcloud docker -- push $(REPO):$(TAG)
|
||||
17
vendor/k8s.io/kubernetes/cluster/addons/registry/images/proxy.conf.in
generated
vendored
Normal file
17
vendor/k8s.io/kubernetes/cluster/addons/registry/images/proxy.conf.in
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
global
|
||||
maxconn 1024
|
||||
|
||||
defaults
|
||||
mode http
|
||||
retries 3
|
||||
option redispatch
|
||||
timeout client 1s
|
||||
timeout server 5s
|
||||
timeout connect 5s
|
||||
|
||||
frontend forwarder
|
||||
bind *:%FWDPORT%
|
||||
default_backend registry
|
||||
|
||||
backend registry
|
||||
server kube-registry %HOST%:%PORT% ssl verify required ca-file %CA_FILE%
|
||||
17
vendor/k8s.io/kubernetes/cluster/addons/registry/images/proxy.conf.insecure.in
generated
vendored
Normal file
17
vendor/k8s.io/kubernetes/cluster/addons/registry/images/proxy.conf.insecure.in
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
global
|
||||
maxconn 1024
|
||||
|
||||
defaults
|
||||
mode http
|
||||
retries 3
|
||||
option redispatch
|
||||
timeout client 1s
|
||||
timeout server 5s
|
||||
timeout connect 5s
|
||||
|
||||
frontend forwarder
|
||||
bind *:%FWDPORT%
|
||||
default_backend registry
|
||||
|
||||
backend registry
|
||||
server kube-registry %HOST%:%PORT%
|
||||
33
vendor/k8s.io/kubernetes/cluster/addons/registry/images/run_proxy.sh
generated
vendored
Normal file
33
vendor/k8s.io/kubernetes/cluster/addons/registry/images/run_proxy.sh
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
# Copyright 2015 The Kubernetes Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
REGISTRY_HOST=${REGISTRY_HOST:?no host}
|
||||
REGISTRY_PORT=${REGISTRY_PORT:-5000}
|
||||
REGISTRY_CA=${REGISTRY_CA:-/var/run/secrets/kubernetes.io/serviceaccount/ca.crt}
|
||||
FORWARD_PORT=${FORWARD_PORT:-5000}
|
||||
sed -e "s/%HOST%/$REGISTRY_HOST/g" \
|
||||
-e "s/%PORT%/$REGISTRY_PORT/g" \
|
||||
-e "s/%FWDPORT%/$FORWARD_PORT/g" \
|
||||
-e "s|%CA_FILE%|$REGISTRY_CA|g" \
|
||||
</proxy.conf.in >/proxy.conf
|
||||
|
||||
# wait for registry to come online
|
||||
while ! host "$REGISTRY_HOST" &>/dev/null; do
|
||||
printf "waiting for %s to come online\n" "$REGISTRY_HOST"
|
||||
sleep 1
|
||||
done
|
||||
|
||||
printf "starting proxy\n"
|
||||
exec haproxy -f /proxy.conf "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue