Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Install and Configure Docker App into KubeSail Platform

7/27/2020

0 Comments

 
Install and Configure Docker App into KubeSail Platform
KubeSail is a cloud company which makes server software easier. For users, 1-click install server-software for free at home or in the cloud! For coders, KubeSail provides simple and fast tools to host apps anywhere. For sysadmins, KubeSail makes apps are consistent and easy to manage. In this post, I will show the steps how to create a simple docker based app using free resources provided by KubeSail.




Sign in KubeSail with Your GitHub Account



Here is how the dashboard looks like. There are two Apps hosted under my account:


Create a new Template



Edit Yaml:

I am using one of my APPs , WebSSH docker image, as an example:


Change Image Name (found from hub.docker.com's image repository )  and default container port number:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: new
  labels:
    app: webssh
spec:
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  replicas: 1
  selector:
    matchLabels:
      app: webssh
  template:
    metadata:
      labels:
        app: webssh
    spec:
      containers:
        - name: api
          image: jakewalker/webssh
          imagePullPolicy: Always
          ports:
            - name: http-ports
              containerPort: 8888




Launch APP from Template and Configure Network

After edit YAML , you can launch this app from the template directly. You can check logs or directly connect to it:










Configure Cloudflare Workers 

Create a workers with following script:
addEventListener(
  "fetch",event => {
     let url=new URL(event.request.url);
     url.hostname="webssh.51sec.usw1.kubesail.org";
     let request=new Request(url,event.request);
     event. respondWith(
       fetch(request)
     )
  }
)

DNS A record for webssh. Value can be any valid ip such as 8.8.8.8. Once A record created, a workers route will route webssh.51sec.org url to your workers - webssh, which eventually will be redirected to destination webssh.51sec.usw1.kubesail.org. 








via Blogger https://ift.tt/2X3gX0P
July 27, 2020 at 01:47PM Cloud, Docker
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org