Difference between revisions of "Helm yourapp"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
  [[helm create]] YOUR_NEW_CHART
 
  [[helm create]] YOUR_NEW_CHART
 
  cd YOUR_NEW_CHART
 
  cd YOUR_NEW_CHART
 +
 
  [[helm install]] YOUR_NEW_APP .
 
  [[helm install]] YOUR_NEW_APP .
 +
NAME: yourapp
 +
LAST DEPLOYED: Fri Mar 24 17:39:40 2023
 +
[[NAMESPACE]]: default
 +
STATUS: deployed
 +
REVISION: 1
 +
NOTES:
 +
1. Get the application URL by running these commands:
 +
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=yourapp,app.kubernetes.io/instance=yourapp" -o jsonpath="{.items[0].metadata.name}")
 +
  export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath=" {.spec.containers[0].ports[0].containerPort}")
 +
  echo "Visit http://127.0.0.1:8080 to use your application"
 +
  kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT
 +
 +
== Related ==
 +
Error: INSTALLATION FAILED: cannot load values.yaml: error converting YAML to JSON: yaml: line 46: did not find expected key
 +
[[kubectl get]]
  
 
== See also ==
 
== See also ==

Latest revision as of 00:05, 16 February 2024

helm create YOUR_NEW_CHART
cd YOUR_NEW_CHART

helm install YOUR_NEW_APP .
NAME: yourapp
LAST DEPLOYED: Fri Mar 24 17:39:40 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
NOTES:
1. Get the application URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=yourapp,app.kubernetes.io/instance=yourapp" -o jsonpath="{.items[0].metadata.name}")
  export CONTAINER_PORT=$(kubectl get pod --namespace default $POD_NAME -o jsonpath=" {.spec.containers[0].ports[0].containerPort}")
  echo "Visit http://127.0.0.1:8080 to use your application"
  kubectl --namespace default port-forward $POD_NAME 8080:$CONTAINER_PORT

Related[edit]

Error: INSTALLATION FAILED: cannot load values.yaml: error converting YAML to JSON: yaml: line 46: did not find expected key
kubectl get 

See also[edit]

Advertising: