Skip to content

Instantly share code, notes, and snippets.

@cagriersen
Created June 8, 2020 13:49
Show Gist options
  • Select an option

  • Save cagriersen/79af80736c2ad42e61e6f7d6be16aa39 to your computer and use it in GitHub Desktop.

Select an option

Save cagriersen/79af80736c2ad42e61e6f7d6be16aa39 to your computer and use it in GitHub Desktop.
Rook curl to wordpress app
[k8s@node01 ~]$ curl -L -s http://$(kubectl get svc wordpress -n default -o jsonpath='{.spec.clusterIP}')
### OUTPUT ###
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title>WordPress &rsaquo; Installation</title>
<link rel='stylesheet' id='buttons-css' href='http://10.233.37.142/wp-includes/css/buttons.min.css?ver=4.6.1' type='text/css' media='all' />
<link rel='stylesheet' id='install-css' href='http://10.233.37.142/wp-admin/css/install.min.css?ver=4.6.1' type='text/css' media='all' />
<link rel='stylesheet' id='dashicons-css' href='http://10.233.37.142/wp-includes/css/dashicons.min.css?ver=4.6.1' type='text/css' media='all' />
</head>
<body class="wp-core-ui language-chooser">
<p id="logo"><a href="https://wordpress.org/" tabindex="-1">WordPress</a></p>
...
....
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment