Yes, modify the file and do kubectl apply -f <file>

On Thursday, October 20, 2016, Norman Khine <nor...@khine.net> wrote:

> Hello, I have the following pod, which has 3 containers:
>
> apiVersion: extensions/v1beta1
> kind: Deployment
> metadata:
>   name: app-feature
>   labels:
>     pod: app
>     track: feature
> spec:
>   replicas: 3
>   template:
>     metadata:
>       labels:
>         pod: app
>         track: feature
>     spec:
>       containers:
>         - name: app-api
>           image: quay.io/.../api:feature_swagger
>           imagePullPolicy: Always
>           ports:
>             - containerPort: 3000
>         - name: app-media
>           image: quay.io/.../media:feature_kube
>           imagePullPolicy: Always
>           ports:
>             - containerPort: 4000
>         - name: phantom
>           image: docker.io/wernight/phantomjs:2.1.1
>           command: ["phantomjs", "--webdriver=8910", "--web-security=no",
> "--load-images=false", "--local-to-remote-url-access=yes"]
>           ports:
>             - containerPort: 8910
>           resources:
>             requests:
>               memory: 1000
>       restartPolicy: Always
>       imagePullSecrets:
>         # we download these from quay.io account
>         - name: pull-secret
>
>
>
> This is the service file i have:
>
> apiVersion: v1
> kind: Service
> metadata:
>   name: media-dev
>   annotations:
>     service.beta.kubernetes.io/aws-load-balancer-ssl-cert:
> arn:aws:acm:us-east-1:XXX:certificate/XXX
>     service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
>     service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
> spec:
>   type: LoadBalancer
>   selector:
>     pod: app
>     track: develop
>   ports:
>   - name: http
>     port: 80
>     targetPort: 4000
>   - name: https
>     port: 443
>     targetPort: 4000
>
> How do I change the selector for this loadBalancer to track `feature`
> instead of `develop` - is it possible to modify for an existing Service
> without having to create a new service?
>
> Any advise is much appreciated
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','kubernetes-users%2bunsubscr...@googlegroups.com');>
> .
> To post to this group, send email to kubernetes-users@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','kubernetes-users@googlegroups.com');>.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to