이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 10. Creating a site on Kubernetes using YAML
Using YAML allows you to create and manage sites from the context of the current namespace.
A typical workflow is to create a site, link sites together, and expose services to the service network.
10.1. Creating a simple site on Kubernetes using YAML 링크 복사링크가 클립보드에 복사되었습니다!
You can use YAML to create and manage Skupper sites.
Prerequisites
- The Skupper controller is running on the Kubernetes cluster you are running or you are running on a platform.
Procedure
Create a site CR YAML file named
my-site.yaml
, for example:apiVersion: skupper.io/v2alpha1 kind: Site metadata: name: my-site namespace: west
apiVersion: skupper.io/v2alpha1 kind: Site metadata: name: my-site namespace: west
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This YAML creates a site named
my-site
in thewest
namespace. Specifying the namespace is not required if the context is set to the namespace where you want to create the site.Create the site:
kubectl apply -f my-site.yaml
kubectl apply -f my-site.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check the status of the site:
kubectl get site
kubectl get site
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You might need to issue the command multiple times before the site is ready:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can now link this site to another site to create an application network.
There are many options to consider when creating sites using YAML, see YAML Reference, including frequently used options.