title: Expose existing and deployed Kubernetes service via LoadBalancer
body: <p>I have deployed a Service into a kubernetes cluster and it looks like so:</p>
  
  <pre><code>$ kubectl get svc my-service
  NAME               CLUSTER_IP       EXTERNAL_IP   PORT(S)    SELECTOR                AGE
  my-service         192.168.202.23   &lt;none&gt;        8080/TCP   name=my-service         38d
  </code></pre>
  
  <p>The spec part of YAML config looks like so:</p>
  
  <pre><code>"spec": {
          "ports": [
              {
                  "name": "http-port",
                  "protocol": "TCP",
                  "port": 8080,
                  "targetPort": 8080
              }
          ],
          "selector": {
              "name": "my-service"
          },
          "clusterIP": "192.168.202.23",
          "type": "ClusterIP",
          "sessionAffinity": "None"
      },
      "status": {
          "loadBalancer": {}
      }
  }
  </code></pre>
  
  <p>Now, I want to expose this service to be externally accessible using LoadBalancer. Using kubectl expose service gives an error like so:</p>
  
  <pre><code>$ kubectl expose service my-service --type="LoadBalancer"
  Error from server: services "my-service" already exists
  </code></pre>
  
  <p>Is it not possible to 'edit' existing deployed service and make it externally accessible?</p>