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
d4324bc4
Commit
d4324bc4
authored
Jun 05, 2015
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update OpenShift on Kubernetes example for getting service public ip
parent
02f3142f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
README.md
examples/openshift-origin/README.md
+1
-1
create.sh
examples/openshift-origin/create.sh
+3
-5
No files found.
examples/openshift-origin/README.md
View file @
d4324bc4
...
...
@@ -75,7 +75,7 @@ build default certificates.
Grab the public IP address of the service we previously created.
```
shell
$
export
PUBLIC_IP
=
$(
cluster/kubectl.sh get services openshift
--template
=
"{{ index .s
pec.publicIPs 0
}}"
)
$
export
PUBLIC_IP
=
$(
cluster/kubectl.sh get services openshift
--template
=
"{{ index .s
tatus.loadBalancer.ingress 0
\"
ip
\"
}}"
)
$
echo
$PUBLIC_IP
```
...
...
examples/openshift-origin/create.sh
View file @
d4324bc4
...
...
@@ -20,11 +20,9 @@ export OPENSHIFT_CONFIG=${OPENSHIFT_EXAMPLE}/config
mkdir
${
OPENSHIFT_CONFIG
}
cluster/kubectl.sh config view
--output
=
yaml
--flatten
=
true
--minify
=
true
>
${
OPENSHIFT_CONFIG
}
/kubeconfig
cluster/kubectl.sh create
-f
$OPENSHIFT_EXAMPLE
/openshift-service.yaml
sleep
30
export
PUBLIC_IP
=
$(
cluster/kubectl.sh get services openshift
--template
=
"{{ index .spec.publicIPs 0 }}"
)
echo
$PUBLIC_IP
export
SVC_IP
=
$(
cluster/kubectl.sh get services openshift
--template
=
"{{ .spec.portalIP }}"
)
echo
$SVC_IP
sleep
60
export
PUBLIC_IP
=
$(
cluster/kubectl.sh get services openshift
--template
=
"{{ index .status.loadBalancer.ingress 0
\"
ip
\"
}}"
)
echo
"PUBLIC IP:
${
PUBLIC_IP
}
"
docker run
--privileged
-v
${
OPENSHIFT_CONFIG
}
:/config openshift/origin start master
--write-config
=
/config
--kubeconfig
=
/config/kubeconfig
--master
=
https://localhost:8443
--public-master
=
https://
${
PUBLIC_IP
}
:8443
sudo
-E
chown
${
USER
}
-R
${
OPENSHIFT_CONFIG
}
docker run
-i
-t
--privileged
-e
=
"OPENSHIFTCONFIG=/config/admin.kubeconfig"
-v
${
OPENSHIFT_CONFIG
}
:/config openshift/origin ex bundle-secret openshift-config
-f
/config &>
${
OPENSHIFT_EXAMPLE
}
/secret.json
...
...
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