MicroShift is Developer Preview software only.
For more information about the support scope of Red Hat Developer Preview software, see Developer Preview Support Scope.이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 1. Application deployment with Red Hat build of MicroShift
You can use the kustomize
configuration management tool to deploy applications. Read through the following procedure for an example of how this tool works in Red Hat build of MicroShift.
1.1. How manifests work with kustomize 링크 복사링크가 클립보드에 복사되었습니다!
The kustomize
configuration management tool is integrated with Red Hat build of MicroShift. At every start, Red Hat build of MicroShift searches the /etc/microshift/manifests
and /usr/lib/microshift/
manifest directories for a kustomization.yaml
file. If it finds one, Red Hat build of MicroShift automatically runs the equivalent of the kubectl apply -k
command to apply the identified manifests to the cluster.
Location | Intent |
---|---|
| Read-write location for configuration management systems or development. |
| Read-only location for embedding configuration manifests on OSTree-based systems. |
1.2. Using manifests example 링크 복사링크가 클립보드에 복사되었습니다!
This example demonstrates automatic deployment of a BusyBox container using kustomize
manifests in the /etc/microshift/manifests
directory.
Procedure
Create the BusyBox manifest files by running the following commands:
Define the directory location:
MANIFEST_DIR=/etc/microshift/manifests
$ MANIFEST_DIR=/etc/microshift/manifests
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Make the directory:
sudo mkdir -p ${MANIFEST_DIR}
$ sudo mkdir -p ${MANIFEST_DIR}
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Place the YAML file in the directory:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Next, create the
kustomize
manifest files by running the following commands:Place the YAML file in the directory:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Restart Red Hat build of MicroShift to apply the manifests by running the following command:
sudo systemctl restart microshift
$ sudo systemctl restart microshift
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Apply the manifests and start the
busybox
pod by running the following command:oc get pods -n busybox
$ oc get pods -n busybox
Copy to Clipboard Copied! Toggle word wrap Toggle overflow