I like to do these illustrated mini-presentations to explain topics.

On Mon, Jul 31, 2017 at 11:08 PM, 'David Oppenheimer' via Kubernetes
user discussion and Q&A <kubernetes-users@googlegroups.com> wrote:
>
>
> On Mon, Jul 31, 2017 at 4:36 PM, 'Tim Hockin' via Kubernetes user discussion
> and Q&A <kubernetes-users@googlegroups.com> wrote:
>>
>>
>> https://speakerdeck.com/thockin/kubernetes-a-very-brief-explanation-of-ports
>
>
> I had not seen this before. This is really great.
>
>>
>>
>>
>> On Mon, Jul 31, 2017 at 3:19 PM, Snd LP <sendalot...@gmail.com> wrote:
>> > I got some nginx containers running that I can access externally.
>> > Here are two yaml files I ran to make this happen.
>> >
>> > What do "hostPort" vs "containerPort" vs "port" vs "targetPort" vs
>> > "nodePort" all do?
>> >
>> > What can I leave out to make clean?
>> > Thanks.
>> > [root@kctl-master kubectl]# cat nginx.yaml
>> > apiVersion: v1
>> > kind: ReplicationController
>> > metadata:
>> >   name: nginx
>> > spec:
>> >   replicas: 2 # deploy
>> >   template: # create pods
>> >     metadata:
>> >       labels:
>> >         app: nginx
>> >     spec:
>> >       containers:
>> >       - name: nginx
>> >         image: nginx
>> >         ports:
>> >         - containerPort: 80
>> >           hostPort: 80
>> > [root@kctl-master kubectl]#
>> >
>> > [root@kctl-master kubectl]# cat nginx-service.yaml
>> > apiVersion: v1
>> > kind: Service
>> > metadata:
>> >   labels:
>> >     name: nginx
>> >   name: nginx
>> > spec:
>> >   type: LoadBalancer
>> >   ports:
>> >     - port: 80
>> >       protocol: TCP
>> >       targetPort: 80
>> >       nodePort: 30000
>> >   selector:
>> >     name: nginx
>> > [root@kctl-master kubectl]#
>> >
>> >
>> > --
>> > 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.
>>
>> --
>> 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.
>
>
> --
> 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.

-- 
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.
  • [kubernetes... Snd LP
    • Re: [k... 'Tim Hockin' via Kubernetes user discussion and Q&A
      • Re... 'David Oppenheimer' via Kubernetes user discussion and Q&A
        • ... 'Tim Hockin' via Kubernetes user discussion and Q&A
          • ... Snd LP
            • ... 'Tim Hockin' via Kubernetes user discussion and Q&A

Reply via email to