aspir8-from-scratch

(★ 48)

Let's deploy Aspire-flavoured apps to a Kubernetes cluster, through Aspir8! Are you new to Kubernetes? Don't worry. Let's start from scratch.

파일 탐색기

  • .editorconfig
  • .gitignore
  • admin-user.yaml
  • Aspir8.sln
  • aspire-dashboard.yaml
  • Directory.Build.props
  • eks-cluster-role-trust-policy.json
  • eks-node-role-trust-policy.json
  • global.json
  • LICENSE
  • load-balancer.yaml
  • README.md

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

aws cloudformation

설명 보기 ▼

Model, provision, and manage AWS and third-party resources by treating infrastructure as code.

aws cloudformation create-stack --stack-name {{stack-name}} --region {{region}} --template-body {{file://path/to/file.yml}} --profile {{profile}}

Create a stack from a template file:

aws cloudformation delete-stack --stack-name {{stack-name}} --profile {{profile}}

Delete a stack:

aws cloudformation list-stacks --profile {{profile}}

List all stacks:

🔍

aws ecr

설명 보기 ▼

Push, pull, and manage container images.

aws ecr get-login-password --region {{region}} | {{docker login}} --username AWS --password-stdin {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com

Authenticate Docker with the default registry (username is AWS):

aws ecr create-repository --repository-name {{repository}} --image-scanning-configuration scanOnPush={{true|false}} --region {{region}}

Create a repository:

docker tag {{container_name}}:{{tag}} {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com/{{container_name}}:{{tag}}

Tag a local image for ECR:

🔍

aws eks

설명 보기 ▼

Manage Amazon Elastic Kubernetes Service (EKS) addons, clusters, and node groups.
Amazon EKS is a service for easily running Kubernetes on AWS.

aws eks create-cluster --name {{cluster_name}} --role-arn {{eks_service_role_arn}} --resources-vpc-config subnetIds={{subnet_ids}},securityGroupIds={{security_group_ids}}

Create an EKS Cluster:

aws eks update-kubeconfig --name {{cluster_name}}

Update kubeconfig to connect to the EKS Cluster:

aws eks list-clusters

List available EKS clusters:

🔍

aws iam

설명 보기 ▼

Interact with Identity and Access Management (IAM), a web service for securely controlling access to AWS services.

aws iam list-users

List users:

aws iam list-policies

List policies:

aws iam list-groups

List groups:

🔍

az acr

설명 보기 ▼

Manage private registries with Azure Container Registries.
Part of `azure-cli` (also known as `az`).

az acr create {{[-n|--name]}} {{registry_name}} {{[-g|--resource-group]}} {{resource_group}} --sku {{sku}}

Create a managed container registry:

az acr login {{[-n|--name]}} {{registry_name}}

Login to a registry:

docker tag {{image_name}} {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}

Tag a local image for ACR:

🔍

az aks

설명 보기 ▼

Manage Azure Kubernetes Service (AKS) clusters.
Part of `azure-cli` (also known as `az`).

az aks list {{[-g|--resource-group]}} {{resource_group}}

List AKS clusters:

az aks create {{[-g|--resource-group]}} {{resource_group}} {{[-n|--name]}} {{name}} {{[-c|--node-count]}} {{count}} --node-vm-size {{size}}

Create a new AKS cluster:

az aks delete {{[-g|--resource-group]}} {{resource_group}} {{[-n|--name]}} {{name}}

Delete an AKS cluster:

🔍

az group

설명 보기 ▼

Manage resource groups and template deployments.
Part of `azure-cli` (also known as `az`).

az group create {{[-n|--name]}} {{name}} {{[-l|--location]}} {{location}}

Create a new resource group:

az group exists {{[-n|--name]}} {{name}}

Check if a resource group exists:

az group delete {{[-n|--name]}} {{name}}

Delete a resource group:

🔍

docker login

설명 보기 ▼

Log into a Docker registry.

docker login

Interactively log into a registry:

docker login {{[-u|--username]}} {{username}}

Log into a registry with a specific username (user will be prompted for a password):

docker login {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} {{server}}

Log into a registry with username and password:

🔍

docker run

설명 보기 ▼

This command is an alias of `docker container run`.

tldr docker container run

View documentation for the original command:

🔍

dotnet restore

설명 보기 ▼

Restores the dependencies and tools of a .NET project.

dotnet restore

Restore dependencies for a .NET project or solution in the current directory:

dotnet restore {{path/to/project_or_solution}}

Restore dependencies for a .NET project or solution in a specific location:

dotnet restore --no-http-cache

Restore dependencies without caching the HTTP requests:

🔍

dotnet run

설명 보기 ▼

Run a .NET application without explicit compile or launch commands.

dotnet run

Run the project in the current directory:

dotnet run --project {{path/to/file.csproj}}

Run a specific project:

dotnet run -- {{arg1=foo arg2=bar ...}}

Run the project with specific arguments:

🔍

dotnet tool

설명 보기 ▼

Manage .NET tools and search published tools in NuGet.

dotnet tool install {{[-g|--global]}} {{dotnetsay}}

Install a global tool (don't use `--global` for local tools):

dotnet tool restore

Install tools defined in the local tool manifest:

dotnet tool update {{[-g|--global]}} {{tool_name}}

Update a specific global tool (don't use `--global` for local tools):

🔍

dotnet

설명 보기 ▼

크로스 플랫폼 .NET Core용 명령줄 도구.
`build`와 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://learn.microsoft.com/dotnet/core/tools>.

dotnet new {{template_short_name}}

새 .NET 프로젝트 초기화:

dotnet restore

NuGet 패키지 복원:

dotnet run

현재 디렉터리에서 .NET 프로젝트를 빌드하고 실행:

🔍

helm

설명 보기 ▼

Kubernetes 패키지 관리자.
`install`과 같은 하위 명령어에는 자체 사용법 문서가 있음.
더 많은 정보: <https://helm.sh/docs/helm/>.

helm create {{chart_name}}

helm 차트 생성:

helm repo add {{repository_name}}

새로운 helm 레포지토리를 추가:

helm repo {{[ls|list]}}

helm 레포지토리 나열:

🔍

kubectl apply

설명 보기 ▼

Manage applications through files defining Kubernetes resources.
Create and update resources in a cluster.

kubectl apply {{[-f|--filename]}} {{path/to/file}}

Apply a configuration to a resource by file name:

kubectl apply {{[-k|--kustomize]}} {{path/to/directory}}

Apply a configuration to a resource from `kustomization.yaml` in a directory:

{{cat pod.json}} | kubectl apply {{[-f|--filename]}} -

Apply a configuration to a resource by `stdin`:

🔍

kubectl config

설명 보기 ▼

Manage Kubernetes configuration (kubeconfig) files for accessing clusters via `kubectl` or the Kubernetes API.
By default, the Kubernetes will get its configuration from `${HOME}/.kube/config`.
See also: `kubectx`, `kubens`.

kubectl config get-contexts

Get all contexts in the default kubeconfig file:

kubectl config {{get-clusters|get-contexts|get-users}} --kubeconfig {{path/to/kubeconfig.yaml}}

Get all clusters/contexts/users in a custom kubeconfig file:

kubectl config current-context

Get the current context:

🔍

kubectl get

설명 보기 ▼

Get Kubernetes objects and resources.

kubectl get {{[ns|namespaces]}}

Get all namespaces in the current cluster:

kubectl get {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}

Get nodes in a specified namespace:

kubectl get {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}

Get pods in a specified namespace:

🔍

kubectl proxy

설명 보기 ▼

Create a proxy server or application-level gateway between localhost and the Kubernetes API server.

kubectl proxy

Run a proxy using the default settings on port 8001 and listen on localhost:

kubectl proxy {{[-w|--www]}} {{path/to/static_dir}} {{[-P|--www-prefix]}} {{/static_prefix/}} --api-prefix {{/api_subset/}}

Proxy part of the Kubernetes API while serving static files from a local directory:

kubectl proxy --api-prefix {{/custom_prefix/}}

Proxy the entire Kubernetes API under a custom prefix:

🔍

kubectl

설명 보기 ▼

Kubernetes 클러스터에서 명령을 실행하기 위한 명령줄 인터페이스.
`run`과 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://kubernetes.io/docs/reference/kubectl/>.

kubectl get {{pods|service|deployment|ingress|...}} {{[-o|--output]}} wide

리소스에 대한 정보를 자세히 나열:

kubectl label pods {{name}} unhealthy=true

지정된 포드에 'unhealthy' 레이블과 'true' 값을 추가:

kubectl get all

다양한 유형의 모든 리소스 나열:

🔍

xml

설명 보기 ▼

XMLStarlet 도구 모음: XML 문서를 쿼리, 편집, 검사, 변환 및 변형.
`validate`와 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139670224>.

xml --help

하위 명령 목록을 포함한 일반 도움말 표시:

xml {{subcommand}} {{options}} {{path/to/input.xml|uri}}

파일 또는 URI에서 입력을 받아 `stdout`에 출력하여 하위 명령 실행:

xml {{subcommand}} {{options}}

`stdin`과 `stdout`을 사용하여 하위 명령 실행:

// repository documentation