instruction: Create a Kubernetes configuration with Service, Deployment resources
output: ```dockerfile
  from the previous commands to create a yaml file as follows.
  The base64 encoded value should all be on a single line.apiVersion: "v1"
  kind: "Secret"
  metadata:
   name: "nginxsecret"
   namespace: "default"
  type: kubernetes.io/tls
  data:
   # NOTE: Replace the following values with your own base64-encoded certificate and key.
   tls.crt: "REPLACE_WITH_BASE64_CERT"
   tls.key: "REPLACE_WITH_BASE64_KEY"
  Now create the secrets using the file:kubectl apply -f nginxsecrets.yaml
  kubectl get secrets
  NAME TYPE DATA AGE
  nginxsecret kubernetes.io/tls 2 1m
  Now modify your nginx replicas to start an https server using the certificate
  in the secret, and the Service, to expose both ports (80 and 443):service/networking/nginx-secure-app.yaml
  apiVersion: v1
  kind: Service
  metadata:
   name: my-nginx
   labels:
   run: my-nginx
  spec:
   type: NodePort
   ports:
   - port: 8080
   targetPort: 80
   protocol: TCP
   name: http
   - port: 443
   protocol: TCP
   name: https
   selector:
   run: my-nginx
  ---
  apiVersion: apps/v1
  kind: Deployment
  metadata:
   name: my-nginx
  spec:
   selector:
   matchLabels:
   run: my-nginx
   replicas: 1
   template:
   metadata:
   labels:
   run: my-nginx
   spec:
   volumes:
   - name: secret-volume
   secret:
   secretName: nginxsecret
   - name: configmap-volume
   configMap:
   name: nginxconfigmap
   containers:
   - name: nginxhttps
   image: bprashanth/nginxhttps:1.0
   ports:
   - containerPort: 443
   - containerPort: 80
   volumeMounts:
   - mountPath: /etc/nginx/ssl
   name: secret-volume
   - mountPath: /etc/nginx/conf.d
   name: configmap-volume
  Noteworthy points about the nginx-secure-app manifest:It contains both Deployment and Service specification in the same file.The nginx server
  serves HTTP traffic on port 80 and HTTPS traffic on 443, and nginx Service
  exposes both ports.Each container has access to the keys through a volume mounted at /etc/nginx/ssl.
  This is set up before the nginx server is started.kubectl delete deployments,svc my-nginx; kubectl create -f ./nginx-secure-app.yaml
  At this point you can reach the nginx server
  ```