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
96c5896c
Commit
96c5896c
authored
May 06, 2015
by
Benjamen Keroack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service documentation: fix location of selector in JSON, make it clear that…
service documentation: fix location of selector in JSON, make it clear that publicIPs belongs in the spec field
parent
9939f927
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
services.md
docs/services.md
+8
-5
No files found.
docs/services.md
View file @
96c5896c
...
@@ -43,12 +43,15 @@ port 9376 and carry a label "app=MyApp".
...
@@ -43,12 +43,15 @@ port 9376 and carry a label "app=MyApp".
"kind": "Service",
"kind": "Service",
"apiVersion": "v1beta3",
"apiVersion": "v1beta3",
"metadata": {
"metadata": {
"name": "my-service"
"name": "my-service",
"labels": {
"environment": "testing"
}
},
},
"spec": {
"selector": {
"selector": {
"app": "MyApp"
"app": "MyApp"
},
},
"spec": {
"ports": [
"ports": [
{
{
"protocol": "TCP",
"protocol": "TCP",
...
@@ -235,9 +238,9 @@ address.
...
@@ -235,9 +238,9 @@ address.
On cloud providers which support external load balancers, this should be as
On cloud providers which support external load balancers, this should be as
simple as setting the
`createExternalLoadBalancer`
flag of the
`Service`
spec
simple as setting the
`createExternalLoadBalancer`
flag of the
`Service`
spec
to
`true`
. This sets up a cloud-specific load balancer and populates the
to
`true`
. This sets up a cloud-specific load balancer and populates the
`publicIPs`
field
(see below). Traffic from the external load balancer will be
`publicIPs`
field
of the spec (see below). Traffic from the external load
directed at the backend
`Pods`
, though exactly how that works depends on the
balancer will be directed at the backend
`Pods`
, though exactly how that works
cloud provider.
depends on the
cloud provider.
For cloud providers which do not support external load balancers, there is
For cloud providers which do not support external load balancers, there is
another approach that is a bit more "do-it-yourself" - the
`publicIPs`
field.
another approach that is a bit more "do-it-yourself" - the
`publicIPs`
field.
...
...
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