Custom Thumbnail 

drop img here or browse to upload

add answer
create album
  • feeling
  • traveling
  • watching
  • playing
  • listening
  • Happy
  • Loved
  • Sad
  • Very sad
  • Angry
  • Confused
  • Hot
  • Broken
  • expressionless
  • Cool
  • Funny
  • Tired
  • Lovely
  • Blessed
  • Shocked
  • Sleepy
  • Pretty
  • Bored
0%

Find Home Tutors | Jobs | At your location

  • Post a To-let
  • Sell Product
  • Get Tuition
  • Find Soulmate
  • Live Chat
  • Contact Support

New Tutor

cover-image
Imtiaz Uddin
Imtiaz Uddin Reyan

Student of Govt.Kobi Nazul Collage.Dhaka

Monthly 5000 Tk.

cover-image
Shahin
Shahin Hossain

Student of Govt. Shahid suhrawardi college

Monthly 4000 Tk.

cover-image
Md Helal
Md Helal Karim

Student of Habibullah Bahar Universit, Shantinagar, Dhaka

Monthly 4000 Tk.

cover-image
Anik
Anik Mondal

Student of Tejgaon university and college

Monthly 3000 Tk.

cover-image
Kalyan
Kalyan Halder

Sr. Developer of SoftBD LTD.

Monthly 4000 Tk.

cover-image
Debasree
Debasree Banik

Monthly 3500 Tk.

    kubernetes cert-manager - how to use wildcard ssl as a certificate issuer

    I have a wildcard certificate bought from namecheap. So now I am going to use the certificate for all of my sub-domain. For this I need a cluster certificate issuer. We are going to use cert manager. So lets start -

    Step 1: Create a secret in the cert-manager namespace name with ca-secrets.yaml

    apiVersion: v1
    kind: Secret
    metadata:
      name: ca-key-pair
      namespace: cert-manager
    data:
      tls.crt:  base64 of fullchain-ca.bundle
      tls.key:  base64 cert.key

    You can generate tls.cert and tls.key by following command - 

     cat fullchain-ca.bundle | base64 -w0
     cat cert.key | base64 -w0

    Now apply the secrets by following command - 

    kubectl apply -f ca-secrets.yaml

     

    Step 2: now create a certificate issuer name with ca-issuer.yaml 

    apiVersion: cert-manager.io/v1alpha2
    kind: ClusterIssuer
    metadata:
     name: k-issuer
     namespace: cert-manager
    spec:
     ca:
       secretName: ca-key-pair

    Here secretName is the secret which we created in step 1 ca-key-pair

     

    Step 3: Now create a certificate name with cert.yaml to test the issuer -

    apiVersion: cert-manager.io/v1alpha2
    kind: Certificate
    metadata:
      name: test-cert-by-kalyan
    spec:
      secretName: k-key-pair
      dnsNames:
      - "*.default.svc.cluster.local"
      - "core2.default.com"
      isCA: true
      issuerRef:
        name: k-issuer
        kind: ClusterIssuer

    Here the issuerRef.name and issuerRef.kind is important.

     

    If you want to use with your ingress then just write this in annotations - 

    cert-manager.io/cluster-issuer: k-issuer

    Thats all we need to do. for more information follow the link CA issuer Cert-Manager If you have any question or problem please comment. I'll reply. Thank you.

    Be the first person to like this

        How to Add a New Node to Kubespray Manased Production Ready Kubernetes Cluster

        I have a production ready kubernetes cluster managed by kubespray. Now I need to add additional node to the cluster. Here I am showing you how you can add a additional node to your cluster. Here my existing cluster - 

        ╰─ kubectl get nodes                                                                                                                                        
        NAME    STATUS   ROLES                  AGE    VERSION
        node1   Ready    control-plane,master   28d    v1.21.4
        node2   Ready    control-plane,master   28d    v1.21.4
        node3   Ready    <none>                 28d    v1.21.4

         

        Now I want to add a new node4 to the cluster. First of all I need to edit the existing ansiable host file  which is inventory/mycluster/hosts.yaml

        # file path - inventory/mycluster/hosts.yaml
        all:
          hosts:
            node1:
              ansible_host: 10.180.63.193
              ip: 10.180.63.193
              access_ip: 10.180.63.193
            node2:
              ansible_host: 10.180.63.151
              ip: 10.180.63.151
              access_ip: 10.180.63.151
            node3:
              ansible_host: 10.180.63.30
              ip: 10.180.63.30
              access_ip: 10.180.63.30
            node4:
              ansible_host: 10.180.63.160
              ip: 10.180.63.160
              access_ip: 10.180.63.160
          children:
            kube_control_plane:
              hosts:
                node1:
                node2:
            kube_node:
              hosts:
                node1:
                node2:
                node3:
                node4:
            etcd:
              hosts:
                node1:
                node2:
                node3:
            k8s_cluster:
              children:
                kube_control_plane:
                kube_node:
            calico_rr:
              hosts: {}

         

        I added node4 information in the above hosts.yaml file. Here my node4 information -

        #my node4 information 
        
            node4:
              ansible_host: 10.180.63.160
              ip: 10.180.63.160
              access_ip: 10.180.63.160

         

        Now run the cluster.yml file to add the new node to the cluster.

        ansible-playbook -i inventory/mycluster/hosts.yaml cluster.yml -u root -b -l node4

         

        Where,

        • -i : inventory file to be used
        • cluster.yml : playbook to deploy a cluster
        • -u root : the user account which we have created on all nodes for password-less ssh access.
        • -b : enable become – sudo access is needed for installing packages, starting services, creating SSL certificates etc.

         

        Wait to finish the process. 

        All done! Now verify the newly added node4 to the cluster.

        ╰─ kubectl get nodes                                                                                                                                        
        NAME    STATUS   ROLES                  AGE    VERSION
        node1   Ready    control-plane,master   28d    v1.21.4
        node2   Ready    control-plane,master   28d    v1.21.4
        node3   Ready    <none>                 28d    v1.21.4
        node4   Ready    <none>                 102s   v1.21.4

        Now node4 is a part of your cluster.

        Vika , Razu and
        34 more liked this

            How to generate kubernetes dashboard access token

            How to generate kubernetes dashboard access token

             

            1. Create the dashboard service account

            Run the following command to create a service account

            kubectl create serviceaccount kubernetes-dashboard-admin-sa -n kube-system

            The command will create a service account in the namespace of kube-system. replace your namespace instate of kube-system

             

            2. Bind the service account to the cluster-admin role

            kubectl create clusterrolebinding kubernetes-dashboard-admin-sa --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard-admin-sa

             

            3. List Secretes

            kubectl get secrets -n kube-system

             

            4. get the token from secret

            kubectl describe secret kubernetes-dashboard-admin-sa-token-lj8cc -n kube-system

             

            Here your secret name can be different. Now copy the token and use it to login kubernetes dashboard.

             

            Lucky , Bidyut and
            28 more liked this

              Deploy a Production Ready Kubernetes Cluster With lxc Container and Kubespray

              Deploy a Production Ready Kubernetes Cluster With lxc Container and Kubespray

              I am going to show the workground how you can use lxc container to create a production grade cluster. Though its hard to create kubernetes cluster with lxc container but its possible. So lets see how we can solve all of those challenges step by step

              Step 1: Prepare host machine

              a) edit following file

              nano /etc/sysctl.conf
              # Uncomment the next line to enable packet forwarding for IPv4
              net.ipv4.ip_forward=1

               

              b) disable firewall 

              ufw disable

               

              c) disable swap

              swapoff -a; sed -i '/swap/d' /etc/fstab

               

              d) update sysctl settings for kubernetes networking

              cat >>/etc/sysctl.d/kubernetes.conf<<EOF
              net.bridge.bridge-nf-call-ip6tables = 1
              net.bridge.bridge-nf-call-iptables = 1
              EOF
              sysctl --system

               

              Step 2: Create lxc profile

              config:
                boot.autostart: "true"
                linux.kernel_modules: ip_vs,ip_vs_rr,ip_vs_wrr,ip_vs_sh,ip_tables,ip6_tables,netlink_diag,nf_nat,overlay,br_netfilter,nf_conntrack,xt_conntrack
                raw.lxc: |
                  lxc.apparmor.profile=unconfined
                  lxc.mount.auto=proc:rw sys:rw cgroup:rw
                  lxc.cgroup.devices.allow=a
                  lxc.cap.drop=
                security.nesting: "true"
                security.privileged: "true"
              description: Default LXD profile
              devices:
                eth0:
                  name: eth0
                  network: lxdbr0
                  type: nic
                root:
                  path: /
                  pool: default
                  type: disk
              name: microk8s
              used_by:
              - /1.0/instances/node1
              - /1.0/instances/node2
              - /1.0/instances/node3

               

              Step 3: Create a linux container 

              lxc launch -p default -p microk8s ubuntu:21.04 node1

               

              Step 4: Inside container do following 

              a) following command should return output

              conntrack -L
              modinfo overlay

               

              b) if above command output error then its seems that there some karnel related problem. Install and fix karnel issue

              sudo apt install linux-generic
              sudo apt install --reinstall linux-image-$(uname -r);
              sudo apt install --reinstall linux-modules-$(uname -r);
              sudo apt install --reinstall linux-modules-extra-$(uname -r);

              this should fix karnel related issue.

               

              c) Recent kubernetes versions want to read from /dev/kmsg which is not present in the container. You need to instruct systemd to always create a symlink to /dev/console instead:

              echo 'L /dev/kmsg - - - - /dev/null' > /etc/tmpfiles.d/kmsg.conf

              if it not working then run following

              echo 'L /dev/kmsg - - - - /dev/console' > /etc/tmpfiles.d/kmsg.conf

               

              if it still not work then do following

              # Hack required to provision K8s v1.15+ in LXC containers
              mknod /dev/kmsg c 1 11
              echo 'mknod /dev/kmsg c 1 11' >> /etc/rc.local
              chmod +x /etc/rc.local

               

              d) if you need to load any module then you can run following comman

              # cmd    module name
              ------------------------
              modprobe br_netfilter

               

              Thats all. Now follow the Kubespray official document.

              To access k8s cluster without execing into master node

              Download the kubectl command into your local.

              which kubectl
              # output: /usr/bin/kubectl

              Create .kube directory

              mkdir ~/.kube

              copy config from kmaster into .kube directory

              lxc file pull kmaster/etc/kubernetes/admin.conf ~/.kube/config
              
              #check cluster
              kubectl get nodes

               

               

              Maria , Kristina and
              31 more liked this

                How to Permanently Solve "Temporary failure in name resolution" Issue

                Permanently Solve Temporary Failure in Name Resolution Issue

                Sometimes we face issue like 

                kalyan@ubuntu:~$ ping jadukori.com
                ping: jadukori.com: Temporary failure in name resolution

                 

                We can easily solve the issue by editing /etc/resolv.conf  

                just add to the file 

                namespace 8.8.8.8

                 

                But the solution does not work when system reboot. 

                So lets solve permanently the problem. 

                Step 1: Install following lib

                sudo apt install resolvconf

                Step 2: edit following file

                nano /etc/resolvconf/resolv.conf.d/head

                add following record to the file

                nameserver 8.8.8.8
                nameserver 8.8.4.4
                nameserver 1.1.1.1

                 

                now save and reboot the system. 

                Congratulation!! We solve the problem permanently.

                 

                Jennifer , FinderBD and
                25 more liked this

                  Prime Minister’s Education Trust Job Circular
                  public Job
                  Job Type: Full-time
                  Salary: 35500 - 67010 tk. per month
                  Application Deadline: 2021-01-13

                  Applications are invited from genuine Bangladeshi nationals for direct appointment to the following posts in the Prime Minister's Education Assistance Trust.   Job summery at a glance - 

                   

                  Name of Organisation 

                  Prime Minister’s Education Assistance Trust 

                  Circular Publish Date 

                  21st  December 2020 

                  Source 

                  Official Website 

                  Job Type 

                  Government Job 

                  Post Name 

                  Programmer 

                  Number of Post 

                  1 

                  Nature of Job 

                  Full time 

                  Age 

                  35 years 

                  Educational Qualification 

                  As per circular 

                  Salary 

                  35500- 67010 

                  Job Location 

                  Dhaka 

                  Official Website to Apply 

                  http://www.pmeat.gov.bd/ or http://pmeat.teletalk.com.bd  

                  Deadline 

                  13th Jan 2021 

                   

                   

                   

                  Tara , Fokrul and
                  45 more liked this

                    Department of Agricultural Extension Recruitment Circular
                    public Job
                    Job Type: Full-time
                    Salary: 18300 - 19300 tk. per month
                    Application Deadline: 2020-12-27

                    কৃষি আবহাওয়া তথ্য পদ্ধতি উন্নতকরণ প্রকল্পের নিয়োগ বিজ্ঞপ্তি।

                     

                    Recruitment- Notification 
                    summery at a glance -  

                    Name of Organization 

                    Department of Agricultural Extension-Government DAE

                    Circular Publish Date 

                    11 December 2020

                    Job Type 

                    Government Job 

                    Number of Post 

                    2

                    Nature of Job 

                    Full time 

                    Age 

                    From 18 to 30 years 

                    Educational Qualification 

                    As per circular 

                    Fee 

                    100

                    Official Website to Apply 

                    http://www.dae.gov.bd

                    Deadline 

                    27 Dec 2020

                     
                    Recruitment to the following posts on full temporary basis for the duration of the project "Agro-Climate Information System Improvement Project" being implemented by the Department of Agricultural Extension. Applications are invited from permanent citizens of Bangladesh for:

                    Position NameEducational Qualifications and Experience
                    Accountant 1 (one)Minimum Bachelor in Commerce from a recognised University. Must have knowledge of MS Word, Excel, PowerPoint to help with accounting. Experience in public procurement, government audit system, ADP and IDA finance system will be preferred. Must have at least 5 (five) years of experience in accounting or financing. The age limit is relaxed for the more experienced.

                    Office Assistant

                     1 (one)

                    Minimum bachelor's degree from a recognised university. Must have experience in preparing letters, reports, other documents through MS Word, Excel, PowerPoint etc. Must have at least 2 (two) years experience in office secretarial work. The age limit is relaxed for the more experienced.

                     

                     

                    Md suzan , Tara and
                    29 more liked this

                      Job circular at Ministry of Defense – 2020
                      public Job
                      Job Type: Full-time
                      Salary: 8000 - 26000 tk. per month
                      Application Deadline: 2021-01-04

                      Ministry of Defense published a job circular and invited applicants to apply within 04 Jan 2021.  Job summary at a glance  

                      Name of Organization 

                      Ministry of Defence (MOD) 

                      Circular Publish Date 

                      12th December 2020 

                      Job Type 

                      Government Job 

                      Number of Post 

                      38 

                      Nature of Job 

                      Full time 

                      Age 

                      From 18 to 30 years 

                      Educational Qualification 

                      As per circular 

                      Fee 

                      6 - 112 

                      Official Website to Apply 

                      http://mod.teletalk.com.bd or https://mod.gov.bd  

                      Deadline 

                      04 Jan 2021 

                       

                       

                      Apply Instruction:  
                       
                      Interested and Eligible Candidates will apply on-line. To use on-line follow the instruction below.  
                       
                      The application process very easy. You have to Fill- up the application form with the needed information.  
                       
                      First of all, visit http://mod.teletalk.com.bd and choose your Position.  

                       

                      Upload your Color photograph and Signature.  The photograph Size should 300×300-pixel, most 100kb, and JPG Format. The signature size should 300×80-pixel, most 60KB and JPG Format.  
                       

                      Then submit the application form. You will get the preview then download the applicant copy. 
                       
                      You should not apply on the last day of the job circular. Because the last date may not work properly. So, apply early to avoid any kinds of problems. To finish your application, you must have to pay the application fee. You can through telitalk mobile network by sending SMS. 

                      Kalyan , Md suzan and
                      39 more liked this
                      Back
                      friends & family