This page (revision-14) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:06 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
14 23-Apr-2022 17:06 15 KB Harry Metske to previous
13 23-Apr-2022 17:06 15 KB Harry Metske to previous | to last
12 23-Apr-2022 17:06 15 KB Harry Metske to previous | to last
11 23-Apr-2022 17:06 15 KB Harry Metske to previous | to last
10 23-Apr-2022 17:06 14 KB Harry Metske to previous | to last
9 23-Apr-2022 17:06 13 KB Harry Metske to previous | to last
8 23-Apr-2022 17:06 11 KB Harry Metske to previous | to last
7 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
6 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
5 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
4 23-Apr-2022 17:06 7 KB Harry Metske to previous | to last
3 23-Apr-2022 17:06 2 KB Harry Metske to previous | to last
2 23-Apr-2022 17:06 1 KB Harry Metske to previous | to last
1 23-Apr-2022 17:06 670 bytes Harry Metske to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 46 changed one line
My app of course fails because it requires one envvar ( %%warning How do I provide envvars in advance? %% )
My app of course fails because it requires one envvar ( %%warning How do I provide envvars in advance? Looks like I need the oc command for that %% )
At line 50 added 13 lines
I can also ssh into my gear, the ui says ''ssh 583f185e2d5271b8c6000069@diy-computerhok.rhcloud.com'' .
{{{
[diy-computerhok.rhcloud.com /]\> lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.7 (Santiago)
Release: 6.7
Codename: Santiago
[diy-computerhok.rhcloud.com /]\> java -version
java version "1.7.0_121"
OpenJDK Runtime Environment (rhel-2.6.8.1.el6_8-i386 u121-b00)
OpenJDK Server VM (build 24.121-b00, mixed mode)
}}}
At line 64 added 108 lines
An old java version unfortunately.
! Download oc cli
See [Installing the cli|https://docs.openshift.com/enterprise/3.0/cli_reference/get_started_cli.html#installing-the-cli]. However, now I need a RedHat account.\\
I found another location to download the command: [http://repo.openshift3roadshow.com/clients/oc-linux.tar.gz]
Extracted this one and copied to /usr/local/bin.
Syntax:
%%collapsebox
__oc command syntax__
{{{
➜ ~ oc
Developer and Administrator Client
This client exposes commands for managing your applications, as well as lower level
tools to interact with each component of your system.
To create a new application, you can use the example app source. Login to your server and then
run new-app:
$ oc login
$ oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git
This will create an application based on the Docker image 'centos/ruby-22-centos7' that builds
the source code at 'github.com/openshift/ruby-hello-world.git'. A build will start automatically and
a deployment will start as soon as the build finishes.
Once your application is deployed, use the status, get, and describe commands to see more about
the created components:
$ oc status
$ oc describe deploymentconfig ruby-hello-world
$ oc get pods
You'll be able to view the deployed application on the IP and port of the service that new-app
created for you.
You can easily switch between multiple projects using 'oc project <projectname>'.
Basic Commands:
types An introduction to concepts and types
login Log in to a server
new-project Request a new project
new-app Create a new application
status Show an overview of the current project
project Switch to another project
Build and Deploy Commands:
start-build Start a new build
build-logs Show logs from a build
deploy View, start, cancel, or retry a deployment
rollback Revert part of an application back to a previous deployment
new-build Create a new build configuration
cancel-build Cancel a pending or running build
import-image Imports images from a Docker registry
scale Change the number of pods in a deployment
tag Tag existing images into image streams
Application Modification Commands:
get Display one or many resources
describe Show details of a specific resource or group of resources
edit Edit a resource on the server
env Update the environment on a resource with a pod template
volumes Update volume on a resource with a pod template
label Update the labels on a resource
annotate Update the annotations on a resource
expose Expose a replicated application as a service or route
stop Deprecated: Gracefully shut down a resource by name or filename.
delete Delete resources by filenames, stdin, resources and names, or by resources and label selector.
Troubleshooting and Debugging Commands:
explain Documentation of resources.
logs Print the logs for a resource.
rsh Start a shell session in a pod
rsync Copy files between local filesystem and a pod
exec Execute a command in a container.
port-forward Forward one or more local ports to a pod.
proxy Run a proxy to the Kubernetes API server
Advanced Commands:
create Create a resource by filename or stdin
replace Replace a resource by filename or stdin.
patch Update field(s) of a resource by stdin.
process Process a template into list of resources
export Export resources so they can be used elsewhere
run Run a particular image on the cluster.
attach Attach to a running container.
policy Manage authorization policy
secrets Manage secrets
convert Convert config files between different API versions
Settings Commands:
logout End the current server session
config Change configuration files for the client
whoami Return information about the current session
Other Commands:
version Display version
help Help about any command
Use "oc help <command>" for more information about a given command.
Use "oc options" for a list of global command-line options (applies to all commands).
}}}
%%