Skip to content

Instantly share code, notes, and snippets.

@deads2k
Created June 8, 2015 15:21
Show Gist options
  • Save deads2k/e2e8c86674abf3a630fd to your computer and use it in GitHub Desktop.
Save deads2k/e2e8c86674abf3a630fd to your computer and use it in GitHub Desktop.
oc secrets
Manage secrets in your project.
Secrets are used to store confidential information that should not be contained inside of an image.
They are commonly used to hold things like keys for authentication to other internal systems like
docker registries.
Usage:
oc secrets [options]
Basic Commands:
login Log in to an OpenShift 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 Starts a new build from existing Build or BuildConfig
build-logs Show container logs from the build container
deploy View, start and restart deployments.
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 tag and image information from an external Docker image repository.
scale Change the number of pods in a deployment
Application Modification Commands:
get Display one or many resources
describe Show details of a specific resource
edit Edit a resource on the server and apply the update.
env Update the environment on a resource with a pod template
label Update the labels on a resource
expose Expose a replicated application as a service or route
stop Gracefully shut down a resource by id or filename.
delete Delete a resource by filename, stdin, resource and ID, or by resources and label selector.
Troubleshooting and Debugging Commands:
logs Print the logs for a container in 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
update Update a resource by filename or stdin.
process Process a template into list of resources
policy Manage authorization policy
secrets Manage secrets
Settings Commands:
logout End the current server session
config Change configuration files for the client
Other Commands:
new Create a new secret based on a file or files within a directory
new-dockercfg Create a new dockercfg secret
Use "oc --help" for a list of all commands available in oc.
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment