An example of how you can create entities in Kubernetes using AWS Lambda. The function will be in Python3, so we will use Kubernetes Python Client More usage examples can be found here. Since AWS Lambda does not support this package, we will pack the "kubernetes" and "boto3" modules in our function. "boto3" is needed … Continue reading "AWS – Lambda: kubectl"
To store and switch between Kubernetes configurations, you can use the Kubernetes CLI plugin, to work with it, "kubectl" must be installed in the system Install the plugin Go to "Manage Jenkins" Section "Manage Plugins" Go to the "Available" tab and in the search indicate "Kubernetes CLI" Install it. Add Kubernetes … Continue reading "Jenkins – Kubeconfig"
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.
The status "Evicted" means that Pod was "evicted" from the node, as he lacked the resources. This can be observed if you display the following: In order to remove all pods in the status "Evicted", do the following:
To enable CORS in ingress, add the following: * - allows requests from anywhere, replace it with the domain you need
Example manifest for creating a configmap, deployment and service for RabbitMQ manifest.yml
Manifest example for creating deployment and service for PostgreSQL manifest.yml
Configuration example Kubernetes Ingress with the choice of backend based on the value of the argument "proxy". And the default backend, if the value of the argument "proxy" is different from "1" and "2", or is missing. manifest.yaml
An example of creating a common directory for two containers in one pod.
Replicas Let's look at the name and namespace of Ingress'а: Edit our Ingress: And we find the string: Set 2 replicas: You can save changes and watch the number of Ingress Pods. nodeSelector We explicitly indicate on which nodes the Ingress should be run. Let's see the current label: Set the label: Edit Ingress … Continue reading "Kubernetes – Ingress Nginx: Replicas and Nodeselector"