Cloud Kube | Create Github Repo

Cloud Kube | Create Github Repo

Kubernetes Application Hosted in the Cloud

full course
  1. Kubernetes Application Hosted in the Cloud
  2. Cloud Kube | Create Github Repo
  3. Cloud Kube | Simple REST Endpoint and Test
  4. Cloud Kube | Build Pipeline Initialization
  5. Cloud Kube | Docker Build and Registry
  6. Cloud Kube | Helm Initialization and Chart Publishing
  7. Cloud Kube | Setup Cloud Hosting
  8. Kube Cloud | Automate Kube Deploy

Create a GitHub Repository

Log into your github account and create a new github repository.

Name the repo (I’m using cloud_application), add a README and a .gitignore with the java template.

Create an Intellij Project

From the intellij welcome screen, pick new project

Name the project cloud_application. Use your domain as the group. Hit Next.

We only need the basic packages for now, so choose: DevTools, Lombok and Spring Web. Hit Finish.

We should now have a populated spring boot application

Link to the Github Repo

Now we need to associate our project to our github repo. We can do that with these commands:

$ git init
Initialized empty Git repository in C:/workspace/github/cloud_application/.git/

$ git remote add origin [email protected]:bullyrooks/cloud_application.git

$ git fetch
Enter passphrase for key '***': 
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
Unpacking objects: 100% (4/4), 847 bytes | 70.00 KiB/s, done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
 * [new branch]      main       -> origin/main

$ git checkout origin/main -ft
Switched to a new branch 'main'
Branch 'main' set up to track remote branch 'main' from 'origin'.

You should now see a .gitignore and a in your project

Now we’re going to push our initial project structure back up, but we’ll need to add files to .gitignore first. Add these entries to .gitignore.


Additionally, since I’m working on windows I needed to update the permissions for the .mvnw file so that github actions can execute it.

$ git update-index --chmod=+x ./mvnw

now push up your changes

$ git add .
warning: LF will be replaced by CRLF in

$ git commit -m "project init"
[main 1a73461] project init
 8 files changed, 603 insertions(+)
 create mode 100644
 create mode 100644 mvnw

$ git push
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 4 threads
Compressing objects: 100% (13/13), done.
Writing objects: 100% (22/22), 8.08 KiB | 459.00 KiB/s, done.
Total 22 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.

And that’s it for now.

0 comments on “Cloud Kube | Create Github RepoAdd yours →

Leave a Reply

Your email address will not be published. Required fields are marked *