Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blog: added _Setting up and running a Kubernetes cluster locally_ #2162

Merged
merged 13 commits into from May 8, 2023

Conversation

themr0c
Copy link
Contributor

@themr0c themr0c commented Apr 19, 2023

blog: added Setting up and running a Kubernetes cluster locally with Podman Desktop

Fixes #1985

Requires feature from https://github.com/containers/podman-desktop/pull/2149/files

@themr0c themr0c force-pushed the issue-1985-kind-blog-post branch 3 times, most recently from 917cc1f to 3f5cbb5 Compare April 24, 2023 11:57
@themr0c themr0c force-pushed the issue-1985-kind-blog-post branch 2 times, most recently from e6562b2 to 8ec21bc Compare April 25, 2023 15:17
@themr0c themr0c marked this pull request as ready for review April 25, 2023 15:20
@themr0c themr0c requested review from a team, slemeur and benoitf as code owners April 25, 2023 15:20
@themr0c themr0c requested review from jeffmaury and cdrage and removed request for a team April 25, 2023 15:20
Copy link
Collaborator

@slemeur slemeur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! minor changes and additional screenshots

@odockal
Copy link
Contributor

odockal commented Apr 26, 2023

@themr0c I have done partial review, I will continue where I ended up in a while.

@odockal odockal self-requested a review April 26, 2023 13:49
cdrage
cdrage previously requested changes Apr 27, 2023
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may not need the YAML with #2149 being merged in.

Also, the ingress YAML is incorrect, there is an annotation for nginx.ingress which is what we don't use (we use contour). The other thing is that you're supplying a prefix that unfortunately won't work on kind unless you modify your /etc/hosts to point to the kind ingress IP or use http://nip.io

Here is the correct YAML you could use:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: frontend-ingress
spec:
  defaultBackend:
    service:
      name: frontend-9000
      port:
        number: 9000

You can then visit it at your kind URL (in the blog case, it'd be http://localhost:9090).

@themr0c
Copy link
Contributor Author

themr0c commented Apr 28, 2023

I addressed all comments I believe. Impatient to see #2149 merged.

@themr0c themr0c dismissed stale reviews from cdrage and odockal May 2, 2023 10:10

implemented

@themr0c themr0c force-pushed the issue-1985-kind-blog-post branch from 3f9808b to feb6073 Compare May 2, 2023 10:43
… Podman Desktop_

Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
@themr0c themr0c force-pushed the issue-1985-kind-blog-post branch from 12867e8 to 1f3cc7f Compare May 2, 2023 11:58
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for all your hard work on patiently waiting as well as updating this blog post.

Obviously let's merge this in after our release? So probably Thursday.

1. Click **Pull image** to pull the image to your container engine local image registry.
1. Click **Done** to get back to the images list.
1. **<icon icon="fa-solid fa-cloud" size="lg" /> Search images**: enter `redis:6.0.5` to find the image.
1. Click **<icon icon="fa-solid fa-ellipsis-v" size="lg" /> > <icon icon="fa-solid fa-ellipsis-v" size="lg" /> Push image to Kind cluster**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is not required, this is only for images that are not in a registry (locally built images)

1. Click **Done** to get back to the images list.
1. **<icon icon="fa-solid fa-cloud" size="lg" /> Search images**: enter `gb-redis-follower:v2` to find the image.
`
1. Click **<icon icon="fa-solid fa-ellipsis-v" size="lg" /> > <icon icon="fa-solid fa-ellipsis-v" size="lg" /> Push image to Kind cluster**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same remark

1. Click **Done** to get back to the images list.
1. **<icon icon="fa-solid fa-cloud" size="lg" /> Search images**: enter `gb-frontend:v5` to find the image.

1. Click **<icon icon="fa-solid fa-ellipsis-v" size="lg" /> > <icon icon="fa-solid fa-ellipsis-v" size="lg" /> Push image to Kind cluster**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem

Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
…h-podman-desktop.md

Signed-off-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
@themr0c themr0c enabled auto-merge (squash) May 8, 2023 09:28
@themr0c
Copy link
Contributor Author

themr0c commented May 8, 2023

Vale doesn't recognize the icon macro. I decreased the severity of rules that are impacted.

@themr0c themr0c merged commit 5d5b932 into containers:main May 8, 2023
10 checks passed
@themr0c themr0c deleted the issue-1985-kind-blog-post branch May 8, 2023 09:55
@podman-desktop-bot podman-desktop-bot added this to the 0.16.0 milestone May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blog Post: Setting up and running a Kubernetes cluster locally with Podman Desktop
6 participants