Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  A walk through of different ways accessing Kubernetes application

When a web application is deployed on KUbernetes, to access the application, there must be some set up needs to be done so that external users can access the resource within the Kubernetes clusters. IN this post, we will walk through different ways to access application from outside.Before exploring different ways, let's set up a simple nginx eb application which will just serve the nginx welcome message when loading.# deployment.yamlapiVersion: apps/v1kind: Deploymentmetadata: name: nginx-deploymentspec: selector: matchLabels: app: nginx replicas: 2 # tells deployment to run 2 pods...

5,478 4       LOADBALANCER NODEPORT CLUSTERIP SERVICE PORT FORWARD KUBERNETES INGRESS


  Privileged users get removed from database in GoDaddy shared hosting

GaDaddy is a famous web hosting platform where many people put their websites on its platform. If one has low budget and wanna a shared hosting, you can buy the service at GoDaddy and share some hosting resource with others. In such cases, there would be resource limit based on different plans.In this post, we will discuss one scenario which caused our application down caused by database usage on shared hosting plan and hope it helps readers who encounter similar issues.The issue we encountered is that our privileged users associated with the database we created get removed all of a sudden and...

1,901 0       CPANEL DATABASE GODADDY PRIVILEGED USER


  Install multiple versions of Go

As a developer, there might be need in some cases to have multiple versions of Go installed. One may test out some new features of the latest version of Go but also wanna maintain a stable version of Go for daily development purpose. How to maintain multiple versions of Go?The GoLang official website has provided a way to maintain multiple versions of Go by using go get to install the different versions of Go.Below are steps:Download a normal version of Go and install itGo to the Go release page to find out which version of go to installRun the go get command to download the version and instal...

5,213 0       MULTIPLE VERSION GO BINARY GO VERSION


  Different ways of handling concurrent job in GoLang

GoLang provides very good support of concurrency and the way to make some code to run concurrent is pretty simple and straightforward. Adding a simple go before a normal function call will make the function call asynchronous.In real cases normally people would concurrently run some jobs to improve the speed and efficiency. One important part of running jobs concurrently is about aggregating results so that the consequent function call would be able to proceed. There are multiple ways handling this scenarios.One of them is using WaitGroup from sync package. The pattern is like:var wg sync.WaitG...

2,541 0       COMPARISON WORKER POOL WAITGROUP CONCURRENT


  Run code with multiple files in the same main package in GoLang

To run a GoLang program, there needs to be a main() function defined. In some cases when developing some demo program which has multiple files and just wanna put them in the same main package and this folder is not in GOPATH, how to run the program?Let's say we have following folder structure where the main() function is defined in main.go.If you just run below command, it would fail to start to run the program and gives some error if some struct is defined in other files and being used.PS D:\Project\Go\sourcecode_updater\v2> go run main.go# command-line-arguments.\main.go:35:11: undefined:...

20,293 0       GOLANG EXECUTABLE MAIN PACKAGE MULTIPLE FILE


  Understanding GoLang interface

If goroutine and channel are considered as the foundation for GoLang concurrency, interface would be the key for data types in GoLang. In practical Go programming, almost all data types are built/used around interfaces, interface is the core of GoLang data structures.Go is not a typical OOP language, it has no class and inheritance concept syntactically. But it doesn't mean that there cannot be polymorphism in GoLang. Because of interface, it achieves the same polymorphism effect as in C++, though syntactically different.Although Go doesn't have concept of class, it allows different data types...

7,443 1       INTERFACE GOLANG


  4 Often-Forgotten Elements of Starting a Small Business

Starting a new business can be an unnerving experience, however, it can be equally rewarding at the same time. The road from idea to launch can be long but when you finally open your doors for business, it will be worth every step of the journey. There is a lot to consider to get to that point. From paperwork to practicalities, it is easy for some of the seemingly minor elements of starting a business to slip through the cracks. To ensure your business gets off to the best start possible, you need to put the tools and infrastructure in place to allow your business to thrive. Many business...

730 0       BUSINESS AUSTRALIA


  Breakdown Kubernetes Container Runtime

Keeping on learning Kubernetes piece by piece and having a deeper understanding of its advantages, I am no longer shocked at its rapid development and popularity.Though backed by big companies like Google is undoubtedly the push, its design, features, and convenience are the biggest attraction. Most of all, it disintegrates the monolithic Internet system governance and lifecycle and offers a new management method.Kubernetes is a set of concepts, including various resource types like Pod, Deployment, control plane, and different components like Node, APIServer, etcd, etc., which may take years ...

1,982 0       CONTAINER KUBERNETES