-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config: Add option for ingress http/https port
This patch try to solve user issue where port 80 or 443 already in use and `crc start` fails by providing user an option as part of `crc config set` to have different http/https port. This patch also add callback function and startup warning in case port setting is choose by user. ``` $ crc config set ingress-http-port 8080 Changes to configuration property 'ingress-http-port' will break the openshift route. User need to add 8080 port to application route to access it. like http://myapp.apps-crc.testing:8080 $ crc start [...] Use the 'oc' command line interface: $ eval $(crc oc-env) $ oc login -u developer https://api.crc.testing:6443 Warning: Port 80 is already in use. Assigned port 8080 instead. You have to add thise port to the application route to access it. like http://myapp.apps-crc.testing:8080 $ curl --unix-socket ~/.crc/crc-http.sock http:/unix/network/services/forwarder/all | jq . [ { "local": "127.0.0.1:2222", "remote": "192.168.127.2:22", "protocol": "tcp" }, { "local": "127.0.0.1:6443", "remote": "192.168.127.2:6443", "protocol": "tcp" }, { "local": ":443", "remote": "192.168.127.2:443", "protocol": "tcp" }, { "local": ":8080", "remote": "192.168.127.2:80", "protocol": "tcp" } ] ```
- Loading branch information
1 parent
9afa0b9
commit 04ce01c
Showing
10 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters