Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to change port 8080 to something else #23

Open
eliassal opened this issue Nov 24, 2023 · 1 comment
Open

Is it possible to change port 8080 to something else #23

eliassal opened this issue Nov 24, 2023 · 1 comment

Comments

@eliassal
Copy link

eliassal commented Nov 24, 2023

Hi, I am learning OC and deployed the app from commandline.
When doing
oc expose service/blog-django-py
It exposes it on port 8080, it works fine and I can access the site. However, my question is that all demos for openshift use port 8080 and as I am not expert in django application, is 8080 hard coded in the application?
Can we change the port for the service?
Thanks in advance

@gbraad
Copy link

gbraad commented Nov 27, 2023

This repo is only to report issues related to the instruqt deployment of the OpenShift course, not about generic OpenShift client and OpenShift service related questions.

Next time try running:

PS> oc expose
...
Usage:
  oc [flags] [options]

Use "oc <command> --help" for more information about a given command.

and you will learn you can do:

PS> oc expose --help
...
    --port='':
        The port that the service should serve on. Copied from the resource being exposed, if unspecified
...

Please next time read the documentation that is given. Especially the topic https://access.redhat.com/documentation/en-us/openshift_container_platform/4.6/html-single/cli_tools/index#cli-getting-help_cli-developer-commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants