Ansible Playbook – Install Docker on CentOS 7

The following example was taken as a Playbook. This Playbook runs on the “docker” host group, installs the necessary packages for Docker, adds the Docker repository, installs Docker, launches it and adds it to autorun. Also adds the user “artem” to the group “docker“   docker.yaml   Apply Playbook:

 Ansible – Install

A simple example of installing Ansible and adding a host. Install Ansible:   RedHat systems: Deb systems:   Generate an SSH key if it is not on the instance with Ansible:   Add the public key to the host, which we will manage:   Add the host to the list:   And insert the following … Continue reading " Ansible – Install"

 Kubernetes – Save all manifest of an existing cluster

  To save all manifests, create a BASH script:   With the following contents:   Add the execution bit and run it:   After executing in the current directory in the folder “k8s-manifests” will be saved all manifests ordered by namespaces and types.

 Docker phpMyAdmin – Nginx reverse proxy

For a container with phpMyAdmin, you need to add a variable with an absolute path:     The “location” block for Nginx (change the proxy path to yours):   Now phpMyAdmin will be available along the path: https://artem.services/phpmyadmin/

GKE – Issuer DNS01

  GCP will be the DNS provider.   YOUR_GCP_PROJECT – Replace with the name of your GCP project   Create an account:   We give him access to the DNS service:   We generate the key:   Create a secret based on the generated key:   Create 2 YAML files for ClusterIssuer.   letsencrypt-staging.yml   … Continue reading "GKE – Issuer DNS01"

GKE – Nginx Ingress Installation Using HELM

  Installation instructions can be found here.   Install HELM locally:   Installing Tiller with RBAC enabled Начиная с Kubernetes v1.8+, RBAC включен по умолчанию.     Checking:   Create Nginx Ingress Controller:   If the following error occurs: Error: release nginx-ingress failed: namespaces "default" is forbidden: User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API … Continue reading "GKE – Nginx Ingress Installation Using HELM"