Use kubectl to create the deployment in a Kubernetes namespace
To create the deployment in the Kubernetes namespace, you use the kubectl command.
For kubectl commands that are supported for IBM® z/OS® Container Platform (zOSCP), see kubectl commands.
In the previous step Create a Kubernetes deployment, you created a deployment YAML
configuration file that is called sample-deployment.yaml. In the YAML file, the
namespace field is set to sample-test. As the namespace field
is hardcoded in the YAML file, you can use the kubectl apply command, without the
namespace parameter supplied.
To create the deployment within the Kubernetes namespace that uses the
sample-deployment.yaml file, run the following
kubectl
command: kubectl apply -f sample-deployment.yaml
You will see the output:
deployment.apps/sample-app created