Giter Club home page Giter Club logo

gke_ssl_iac_kcert's Introduction

Assumption

  • You have a public DNS for your website
  • Use are using ingress controller like nginx
  • You have kubectl access to the cluster

Installation

  1. Terraform IAC for creating k8s cluster

    • terraform init

    • terraform apply

  2. Ingress Controller setup ( if not done already )

    • helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx

    • helm repo update ingress-nginx

    • helm install nginx-ingress ingress-nginx/ingress-nginx

    • kubectl delete -A ValidatingWebhookConfiguration nginx-ingress-ingress-nginx-admission

  3. Update DNS

    • kubectl get svc

      NAME                                       TYPE           CLUSTER-IP    EXTERNAL-IP
      nginx-ingress-ingress-nginx-controller     LoadBalancer   10.52.0.17    35.239.122.122
      
    • Get the public ip address and update dns for the hosts in your ingress

  4. Kcert Setup

    • kubectl create -f kcert/kcert.yml

  5. Kcert Check

    • kubectl get all -n kcert

      NAME                        READY   STATUS    RESTARTS   AGE
      pod/kcert-6ffbb9bf9-47979   1/1     Running   0          15h
      
      NAME            TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)           AGE
      service/kcert   ClusterIP   10.52.12.2   <none>        80/TCP,8080/TCP   15h
      
      NAME                    READY   UP-TO-DATE   AVAILABLE   AGE
      deployment.apps/kcert   1/1     1            1           15h
      
      NAME                              DESIRED   CURRENT   READY   AGE
      replicaset.apps/kcert-6ffbb9bf9   1         1         1       15h
      
  6. Create ingress

    • kubectl create -f app/app.yaml

    • kubectl create -f app/kcert-demo.yaml

    • kubectl get secrets -A

      NAME                     TYPE                  
      kcert-agileguru-org      kubernetes.io/tls
      
  7. Check Your app

gke_ssl_iac_kcert's People

Contributors

agileguru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.