Ir al contenido principal

Understanding Liveness, Readiness and Startup Probes in Kubernetes

 This is a small article about understanding the liveness, readiness and startup in kubernetes.  There's good explanation in the kubernetes documentation: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ This video also explains well the process: https://www.youtube.com/watch?v=aTlQBofihJQ But I wanted to understand it in a practical way. So I have this demo: https://github.com/DiegoTc/guest-book-js-docker/tree/Running-App-Version-1 It's a simple application running on a kubernetes cluster. https://github.com/DiegoTc/guest-book-js-docker/blob/Running-App-Version-1/argo/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: chat-ui spec: replicas: 1 revisionHistoryLimit: 3 selector: matchLabels: app: chat-ui template: metadata: labels: app: chat-ui spec: containers: - image: diegotc/guestbook:20230803-064434 imagePullPolicy: Always nam

Algunos puntos al momento de trabajar con MYSQL

Estoy haciendo un pequeno programa, de manejo de horarios.
Decide usar MYSQL para dicha apliacion. Aqui voy a escribir algunos puntos importantes que tengo que tener en cuenta al momento de manejar mysql.

Estoy usando como sistema operativo Ubuntu 11.10. Si desean saber como instalar mysql pueden ver este link (https://help.ubuntu.com/11.04/serverguide/C/mysql.html)

Comando para ingresar a nuestra base de datos

  • mysql -u usuario -p
    donde usuario es el usuario que ustedes crearon o el usuario rooot, que es el que se crea por default. -p indica que espera el parametro de la contrasena.(Password en ingles)

Comando para crear la base de datos

  • CREATE DATABASE NOMBRE

Comando para acceder a la base de datos

  • use nombre
    Donde nombre es el nombre de la base de datos

Comando para crear una table con llave primaria

Comando para crear table con llave foranea

  • CREATE TABLE consumidor (fecha DATE NOT NULL, hora TIME NOT NULL, codigo_id INT NOT NULL, PRIMARY KEY (fecha, hora), FOREIGN KEY (codigo_id) REFERENCES nombre_table (id) ON UPDATE CASCADE ON DELETE RESTRICT) ENGINE=INNODB;

Supongamos que tenemos nuestra base de datos en un archivo te texto y deseamos importar la informacion. Este es el comando

  • LOAD DATA LOCAL INFILE '/home/diego/NetBeansProjects/a.txt' INTO TABLE nombre_table;

Espero que les sirva un poco

Comentarios

Entradas populares de este blog

Adding Users to Existing Groups in Ubuntu (Oneiric Ocelot)

Hi have been working in Virtual Box, this days and need to add my user to the vboxusers group. I was going to do it graphically, and suddenly I notice that the application I use for doing this job it disappear. :( So I have to use the CLI If you know the group just do this Steps sudo usermod -a -G GROUP USER where -a means append. Add the user to the supplementary group(s). Use only with the -G option. If you want to read more about the usermod do man usermod If you don't know the group Steps groupmode 2 TIMES sudo usermod -a -G GROUP USER If you see the only difference is that you type groupmode and press tab 2 times and all the groups will be display. HOPE it works

Que buscaron los hondureños en Google en el 2017

Se han preguntando que buscan los catrachos en Internet? Les traemos un resumen de las busquedas de este 2017 en Honduras.

Understanding Liveness, Readiness and Startup Probes in Kubernetes

 This is a small article about understanding the liveness, readiness and startup in kubernetes.  There's good explanation in the kubernetes documentation: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ This video also explains well the process: https://www.youtube.com/watch?v=aTlQBofihJQ But I wanted to understand it in a practical way. So I have this demo: https://github.com/DiegoTc/guest-book-js-docker/tree/Running-App-Version-1 It's a simple application running on a kubernetes cluster. https://github.com/DiegoTc/guest-book-js-docker/blob/Running-App-Version-1/argo/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: chat-ui spec: replicas: 1 revisionHistoryLimit: 3 selector: matchLabels: app: chat-ui template: metadata: labels: app: chat-ui spec: containers: - image: diegotc/guestbook:20230803-064434 imagePullPolicy: Always nam