๐ ํ๋ก๋น์ ๋ - Nginx
๐ณ๏ธโ๐ [๊ถ๊ธํ์ ]
๐[๋ชฉ์ฐจ]
helm pull oci://registry-1.docker.io/bitnamicharts/nginx --untar
Pulled: registry-1.docker.io/bitnamicharts/nginx:20.0.3
Digest: sha256:6e6683208cd289784193b8562b760f841cd64bd549f365704a8089082258adfe
cd nginx
cp values.yaml dev-values.yaml
service:
type: NodePort
helm install mynginx . -n mydev --create-namespace -f dev-values.yaml
NAME: mynginx
LAST DEPLOYED: Fri May 30 13:00:53 2025
NAMESPACE: mydev
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: nginx
CHART VERSION: 20.0.4
APP VERSION: 1.28.0
Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami for more information.
** Please be patient while the chart is being deployed **
NGINX can be accessed through the following DNS name from within your cluster:
mynginx.mydev.svc.cluster.local (port 80)
To access NGINX from outside the cluster, follow the steps below:
1. Get the NGINX URL by running these commands:
export NODE_PORT=$(kubectl get --namespace mydev -o jsonpath="{.spec.ports[0].nodePort}" services mynginx)
export NODE_IP=$(kubectl get nodes --namespace mydev -o jsonpath="{.items[0].status.addresses[0].address}")
echo "http://${NODE_IP}:${NODE_PORT}"
WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
- cloneStaticSiteFromGit.gitSync.resources
- resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
๋ ธ๋ ์์ดํผ, ํฌํธ ํ์ธ
export NODE_PORT=$(kubectl get --namespace mydev -o jsonpath="{.spec.ports[0].nodePort}" services mynginx) export NODE_IP=$(kubectl get nodes --namespace mydev -o jsonpath="{.items[0].status.addresses[0].address}") echo "http://${NODE_IP}:${NODE_PORT}"
k get all -n mydev
NAME READY STATUS RESTARTS AGE
pod/mynginx-86798488b8-khwsd 1/1 Running 0 50s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/mynginx NodePort 10.103.131.231 <none> 80:32397/TCP,443:31680/TCP 50s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/mynginx 1/1 1 1 50s
NAME DESIRED CURRENT READY AGE
replicaset.apps/mynginx-86798488b8 1 1 1 50s
curl http://192.168.56.10:32397
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
