Created
October 31, 2020 19:50
-
-
Save norbinsh/ea80bd062a497368470f59605abba4b8 to your computer and use it in GitHub Desktop.
default nginx container html file overwrite with local container IP - k8s pod + docker
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
LIP=`cat /etc/hosts | grep 10. | awk 'END{print $1}'`;echo "<html><body>container IP: ${LIP}</body></html>" > usr/share/nginx/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment