Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f4d23349
Commit
f4d23349
authored
Apr 04, 2016
by
Prashanth Balasubramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a l7 static pod
parent
8a29f67f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
34 deletions
+77
-34
default-svc-controller.yaml
...ns/cluster-loadbalancing/glbc/default-svc-controller.yaml
+4
-34
glbc.manifest
cluster/saltbase/salt/l7-gcp/glbc.manifest
+53
-0
init.sls
cluster/saltbase/salt/l7-gcp/init.sls
+17
-0
top.sls
cluster/saltbase/salt/top.sls
+3
-0
No files found.
cluster/addons/cluster-loadbalancing/glbc/
glbc
.yaml
→
cluster/addons/cluster-loadbalancing/glbc/
default-svc-controller
.yaml
View file @
f4d23349
{
%
set kube_uid = "" -%
}
{
%
if pillar
[
'
kube_uid'
]
is defined -%
}
{
%
set kube_uid = pillar
[
'
kube_uid'
]
%
}
{
%
endif -%
}
apiVersion
:
v1
apiVersion
:
v1
kind
:
ReplicationController
kind
:
ReplicationController
metadata
:
metadata
:
name
:
l7-
lb-controller-v0.6.2
name
:
l7-
default-backend-v1.0
namespace
:
kube-system
namespace
:
kube-system
labels
:
labels
:
k8s-app
:
glbc
k8s-app
:
glbc
version
:
v
0.6.2
version
:
v
1.0
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/name
:
"
GLBC"
kubernetes.io/name
:
"
GLBC"
spec
:
spec
:
# There should never be more than 1 controller alive simultaneously.
replicas
:
1
replicas
:
1
selector
:
selector
:
k8s-app
:
glbc
k8s-app
:
glbc
version
:
v
0.6.2
version
:
v
1.0
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
k8s-app
:
glbc
k8s-app
:
glbc
version
:
v
0.6.2
version
:
v
1.0
name
:
glbc
name
:
glbc
kubernetes.io/cluster-service
:
"
true"
kubernetes.io/cluster-service
:
"
true"
spec
:
spec
:
terminationGracePeriodSeconds
:
600
containers
:
containers
:
-
name
:
default-http-backend
-
name
:
default-http-backend
# Any image is permissible as long as:
# Any image is permissible as long as:
...
@@ -50,26 +43,3 @@ spec:
...
@@ -50,26 +43,3 @@ spec:
requests
:
requests
:
cpu
:
10m
cpu
:
10m
memory
:
20Mi
memory
:
20Mi
-
image
:
gcr.io/google_containers/glbc:0.6.2
livenessProbe
:
httpGet
:
path
:
/healthz
port
:
8081
scheme
:
HTTP
initialDelaySeconds
:
30
# healthz reaches out to GCE
periodSeconds
:
30
timeoutSeconds
:
5
name
:
l7-lb-controller
resources
:
limits
:
cpu
:
100m
memory
:
100Mi
requests
:
cpu
:
100m
memory
:
50Mi
args
:
-
--default-backend-service=kube-system/default-http-backend
-
--verbose=true
-
--sync-period=60s
-
--cluster-uid={{kube_uid}}
cluster/saltbase/salt/l7-gcp/glbc.manifest
0 → 100644
View file @
f4d23349
apiVersion: v1
kind: Pod
metadata:
name: l7-lb-controller-v0.6.0
namespace: kube-system
labels:
k8s-app: glbc
version: v0.6.0
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "GLBC"
spec:
terminationGracePeriodSeconds: 600
hostNetwork: true
containers:
# TODO: Push thing image once kubernetes/contrib/pull/680 is in.
- image: bprashanth/glbc:0.6.3
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /healthz
port: 8086
scheme: HTTP
initialDelaySeconds: 30
# healthz reaches out to GCE
periodSeconds: 30
timeoutSeconds: 5
name: l7-lb-controller
volumeMounts:
- mountPath: /etc/gce.conf
name: cloudconfig
readOnly: true
- mountPath: /var/log/glbc.log
name: logfile
readOnly: false
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 50Mi
command:
# TODO: split this out into args when we no longer need to pipe stdout to a file #6428
- sh
- -c
- '/glbc --default-backend-service=kube-system/default-http-backend --sync-period=60s --running-in-cluster=false --use-real-cloud=true --config-file-path=/etc/gce.conf --healthz-port=8086 1>>/var/log/glbc.log 2>&1'
volumes:
- hostPath:
path: /etc/gce.conf
name: cloudconfig
- hostPath:
path: /var/log/glbc.log
name: logfile
cluster/saltbase/salt/l7-gcp/init.sls
0 → 100644
View file @
f4d23349
/etc/kubernetes/manifests/glbc.manifest:
file.managed:
- source: salt://l7-gcp/glbc.manifest
- template: jinja
- user: root
- group: root
- mode: 644
- makedirs: true
- dir_mode: 755
/var/log/glbc.log:
file.managed:
- user: root
- group: root
- mode: 644
cluster/saltbase/salt/top.sls
View file @
f4d23349
...
@@ -57,6 +57,9 @@ base:
...
@@ -57,6 +57,9 @@ base:
{% elif pillar.get('network_provider', '').lower() == 'cni' %}
{% elif pillar.get('network_provider', '').lower() == 'cni' %}
- cni
- cni
{% endif %}
{% endif %}
{% if pillar.get('enable_l7_loadbalancing', '').lower() == 'glbc' %}
- l7-gcp
{% endif %}
- kube-apiserver
- kube-apiserver
- kube-controller-manager
- kube-controller-manager
- kube-scheduler
- kube-scheduler
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment