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
d1a8b668
Commit
d1a8b668
authored
Jun 12, 2015
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9524 from caesarxuchao/elasticsearch-example-v1
update examples/elasticsearch to v1
parents
2c93add9
8fcc39be
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
examples/elasticsearch/README.md
+6
-6
apiserver-secret.yaml
examples/elasticsearch/apiserver-secret.yaml
+1
-1
music-rc.yaml
examples/elasticsearch/music-rc.yaml
+1
-1
music-service.yaml
examples/elasticsearch/music-service.yaml
+2
-2
No files found.
examples/elasticsearch/README.md
View file @
d1a8b668
...
...
@@ -16,7 +16,7 @@ with the basic authentication username and password.
Here is an example replication controller specification that creates 4 instances of Elasticsearch which is in the file
[
music-rc.yaml
](
music-rc.yaml
)
.
```
apiVersion: v1
beta3
apiVersion: v1
kind: ReplicationController
metadata:
labels:
...
...
@@ -68,7 +68,7 @@ for the replication controller (in this case `mytunes`).
Before creating pods with the replication controller a secret containing the bearer authentication token
should be set up. A template is provided in the file
[
apiserver-secret.yaml
](
apiserver-secret.yaml
)
:
```
apiVersion: v1
beta3
apiVersion: v1
kind: Secret
metadata:
name: apiserver-secret
...
...
@@ -92,7 +92,7 @@ eUdsRGNNdlNaUFg0UHlQMFE1YkhnQVlnaTFpeUVIdjIK=
```
resulting in the file:
```
apiVersion: v1
beta3
apiVersion: v1
kind: Secret
metadata:
name: apiserver-secret
...
...
@@ -113,10 +113,10 @@ $ kubectl create -f music-rc.yaml --namespace=mytunes
replicationcontrollers/music-db
```
It's also useful to have a
[
service
](
../../docs/services.md
)
with an
external
load balancer for accessing the Elasticsearch
It's also useful to have a
[
service
](
../../docs/services.md
)
with an load balancer for accessing the Elasticsearch
cluster which can be found in the file
[
music-service.yaml
](
music-service.yaml
)
.
```
apiVersion: v1
beta3
apiVersion: v1
kind: Service
metadata:
name: music-server
...
...
@@ -130,7 +130,7 @@ spec:
- name: db
port: 9200
targetPort: es
createExternalLoadBalancer: true
type: LoadBalancer
```
Let's create the service with an external load balancer:
```
...
...
examples/elasticsearch/apiserver-secret.yaml
View file @
d1a8b668
apiVersion
:
v1
beta3
apiVersion
:
v1
kind
:
Secret
metadata
:
name
:
apiserver-secret
...
...
examples/elasticsearch/music-rc.yaml
View file @
d1a8b668
apiVersion
:
v1
beta3
apiVersion
:
v1
kind
:
ReplicationController
metadata
:
labels
:
...
...
examples/elasticsearch/music-service.yaml
View file @
d1a8b668
apiVersion
:
v1
beta3
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
music-server
...
...
@@ -12,4 +12,4 @@ spec:
-
name
:
db
port
:
9200
targetPort
:
es
createExternalLoadBalancer
:
true
type
:
LoadBalancer
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