Complete the code to deploy the SCADA data collector service on the cloud.
kubectl apply -f [1]The kubectl apply -f command requires a YAML file describing the deployment. Here, scada-collector.yaml is the correct file.
Complete the command to check the status of the SCADA collector pods.
kubectl get pods -l app=[1]The label app=collector selects pods related to the SCADA data collector service.
Fix the error in the command to expose the SCADA collector service on port 8080.
kubectl expose deployment scada-collector --type=[1] --port=8080
To expose the service externally on port 8080, LoadBalancer type is used in cloud environments.
Fill both blanks to create a ConfigMap for SCADA collector settings.
kubectl create configmap [1] --from-file=[2]
The ConfigMap is named scada-config and created from the file collector-settings.yaml.
Fill all three blanks to define a Kubernetes secret for SCADA credentials.
kubectl create secret generic [1] --from-literal=[2]=[3]
The secret is named scada-credentials and stores the literal username=scada_user.