---
title: "Discussion on \"Deployed a Reddit Copy on Kubernetes with Ingress Enabled\" | Hashnode"
description: "Discussion on \"Deployed a Reddit Copy on Kubernetes with Ingress Enabled\". Deployed a Reddit Copy on Kubernetes with Ingress Enabled"
url: "https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Deployed a Reddit Copy on Kubernetes with Ingress Enabled](https://trainwithshubham.hashnode.dev/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled?utm_source=hashnode&utm_medium=feed)

Deployed a Reddit Copy on Kubernetes with Ingress Enabled

Mar 2, 2023 · 5 min read · trainwithshubham.hashnode.dev  
Read the article

-   [#trainwithshubham](https://hashnode.com/tag/trainwithshubham)
-   [#devops](https://hashnode.com/tag/devops)
-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#ingress](https://hashnode.com/tag/ingress)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)

## Written by

[Rushikesh Mashidkar](https://hashnode.com/@RishikeshOps)

@RishikeshOps · India

  
[View profile](https://hashnode.com/@RishikeshOps)

DevOps Engineer || AWS || Cloud || Kubernets || Terraform || Ansible || Linux ||

Welcome to the world of DevOps⚙️, where technology meets efficiency. My name is Rushikesh Mashidkar and I am a dedicated practitioner of this exciting field. With a keen interest in cloud computing, containerization, and automation, I am constantly exploring new ways to improve the software development and deployment process. Join me on my journey as I share my experiences and insights in the ever-evolving world of DevOps🤖.

## Responses 8

Markdown supported · ⌘↵ to post

[Tanvi Desai](https://hashnode.com/@desaitanvi)

[Mar 13, 2024](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/65f122fe227da126c4753a26)

hello [Rushikesh Mashidkar](https://hashnode.com/@RishikeshOps)[Shubham Londhe](https://hashnode.com/@TrainWithShubham)

i have some problem running this application again. like, for the first time it was good. but what if i want to run it again.

And one more thing how i can i demonstrate it to my interviewer because i terminate both the instance.

i hope you guys can help me with this.

waiting for your reply.

[Tanvi Desai](https://hashnode.com/@desaitanvi)

[Mar 12, 2024](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/65f0bddd4c96390ca229a67b)

error creating error stream for port 3000 -> 3000: Timeout occurred

can someone help me with this

[Mradul Singh](https://hashnode.com/@mradul1725)

[Sep 3, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64f42e00b2147985ab4ed4d3)

‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

[Kunal Gohrani](https://hashnode.com/@kunalgohrani)

[Sep 2, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64f36e9d6889c87c962d4ed8)

Hi [Rushikesh Mashidkar](https://hashnode.com/@RushikeshOps), this is an amazing blog, well done! I had some questions on it.

1.  After applying a service.yaml file, why have you again exposed the deployment? Isn't it just like creating 2 services out of which one won't be used?
    
2.  For testing the ingress, could you test it in the browser? because although curl commands show the code, it would be a much better way to show ingress working by hitting the domain on the browser.
    

[Sachin Adi](https://hashnode.com/@sachinadi424)

[Sep 1, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64f1934c052b196d0934d31c)

The detailing and step by step construction of this blog is absolutely helpful for learners like me! Thank you [Rushikesh Mashidkar](https://hashnode.com/@RushikeshOps) [Shubham Londhe](https://hashnode.com/@TrainWithShubham)

[Suman Saurabh](https://hashnode.com/@saurabh238)

[Aug 18, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64df8993a2293c9bbfb438b4)

veryhelp full

[Vinod Vashistha](https://hashnode.com/@vashisthavinod)

[Aug 14, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64da75234429385b928000d0)

Hello Shubham and Rushikesh,

Thanks for the nice article. I am getting below error after I create and try to apply service. yml. My Manifesto file was done and I was able to get the same, yet each time I do service, I get the following error. Please tell me how to get rid of this.

ubuntu@ip-172-31-39-240:~/k8s$ kubectl apply -f Service.yml Unable to connect to the server: net/http: TLS handshake timeout

ubuntu@ip-172-31-39-240:~/k8s$ pwd /home/ubuntu/k8s ubuntu@ip-172-31-39-240:~/k8s$ ls -lrt

ubuntu@ip-172-31-39-240:~/k8s$ cat Service.yml apiVersion: v1 kind: Service metadata: name: reddit-clone-service labels: app: reddit-clone spec: type: NodePort ports:

-   port: 3000 targetPort: 3000 nodePort: 31000 selector: app: reddit-clone

ubuntu@ip-172-31-39-240:~/k8s$ kubectl get deployment Unable to connect to the server: net/http: TLS handshake timeout ubuntu@ip-172-31-39-240:~/k8s$

[Rushikesh Mashidkar](https://hashnode.com/@RishikeshOps)

[Aug 14, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64da75234429385b928000d0#reply-64da76306203e95780d64717)

Hey there 👋 Use following commands and try again:

1.  mkdir -p $HOME/.kube
    
2.  sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
    

3.sudo chown $(id -u):$(id -g) $HOME/.kube/config

Make sure your cluster is in running state and ports open

[Vinod Vashistha](https://hashnode.com/@vashisthavinod)

[Aug 15, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64da75234429385b928000d0#reply-64dbb3b96203e95780d6658f)

[Rushikesh Mashidkar](https://hashnode.com/@RushikeshOps) Hello Rushikesh,

Thanks for your prompt response. I terminated the instances; re-created the instances and opened the inbound rules for SSH and HTTPS. It worked.

Thanks a lot!

[Janvi Dalal](https://hashnode.com/@janvi20)

[Jul 9, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64aaa0dda25b102014462c45)

best :) ty

[Rushikesh Mashidkar](https://hashnode.com/@RishikeshOps)

[Jul 9, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/64aaa0dda25b102014462c45#reply-64aaa145395b682e51ab71ba)

Hope you gain some knowledge from it😊

Happy learning : )

[Yadav Kamal](https://hashnode.com/@moonstone)

[Jun 15, 2023](https://hashnode.com/posts/deployed-a-reddit-copy-on-kubernetes-with-ingress-enabled/6401184283a153ab91bbfcb9/comment/648aeef31c2b5dbd4dc8fdef)

i want to test this article
