Este conteúdo não está disponível no idioma selecionado.
Chapter 17. Creating a site on local systems using YAML
Using YAML allows you to create and manage sites on Docker, Podman and Linux.
A typical workflow is to create a site, link sites together, and expose services to the service network.
			If you require more than one site, specify a unique namespace when using skupper, for example skupper --namespace second-site ....
		
17.1. Creating a simple site on local systems using YAML Copiar o linkLink copiado para a área de transferência!
You can use YAML to create and manage Skupper sites.
Prerequisites
- 
						The 
skupperCLI is installed. 
Procedure
Create a site CR YAML file named
my-site.yamlin an empty directory, for example,local:apiVersion: skupper.io/v2alpha1 kind: Site metadata: name: my-site
apiVersion: skupper.io/v2alpha1 kind: Site metadata: name: my-siteCopy to Clipboard Copied! Toggle word wrap Toggle overflow This YAML creates a site named
my-sitein thedefaultnamespace.Create the site:
skupper system setup --path ./local
skupper system setup --path ./localCopy to Clipboard Copied! Toggle word wrap Toggle overflow Skupper attempts to process any files in the
localdirectory. Typically, you create all resources you require for a site before runningskupper system setup.Check the status of the site:
skupper site status
skupper site statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow You might need to issue the command multiple times before the site is ready:
NAME STATUS MESSAGE default Ready OK
NAME STATUS MESSAGE default Ready OKCopy 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.