| @ -1,3 +1,4 @@ | |||||
| sudo kubeadm init --pod-network-cidr=10.34.0.0/16 --upload-certs --control-plane-endpoint=k8s-server --cri-socket unix:///run/containerd/containerd.sock | |||||
| sudo kubeadm init --control-plane-endpoint=vmcluster | |||||
| #sudo kubeadm init --pod-network-cidr=10.34.0.0/16 --upload-certs --control-plane-endpoint=k8s-server --cri-socket unix:///run/containerd/containerd.sock | |||||
| #sudo kubeadm init --pod-network-cidr=10.34.0.0/16 --cri-socket unix:///run/containerd/containerd.sock --upload-certs --control-plane-endpoint=k8s-server | #sudo kubeadm init --pod-network-cidr=10.34.0.0/16 --cri-socket unix:///run/containerd/containerd.sock --upload-certs --control-plane-endpoint=k8s-server | ||||
| @ -1,5 +1,7 @@ | |||||
| #kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml | #kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml | ||||
| kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.3/manifests/tigera-operator.yaml | |||||
| #kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.3/manifests/tigera-operator.yaml | |||||
| kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.1/manifests/calico.yaml | |||||
| kubectl create -f ./custom-resources.yaml | kubectl create -f ./custom-resources.yaml | ||||
| @ -0,0 +1,31 @@ | |||||
| apiVersion: networking.k8s.io/v1 | |||||
| kind: Ingress | |||||
| metadata: | |||||
| generation: 1 | |||||
| managedFields: | |||||
| - apiVersion: networking.k8s.io/v1 | |||||
| fieldsType: FieldsV1 | |||||
| fieldsV1: | |||||
| f:spec: | |||||
| f:defaultBackend: | |||||
| .: {} | |||||
| f:service: | |||||
| .: {} | |||||
| f:name: {} | |||||
| f:port: {} | |||||
| f:rules: {} | |||||
| manager: rancher | |||||
| operation: Update | |||||
| name: firefly | |||||
| namespace: firefly | |||||
| spec: | |||||
| defaultBackend: | |||||
| service: | |||||
| name: firefly | |||||
| port: | |||||
| number: 8080 | |||||
| ingressClassName: firefly | |||||
| rules: | |||||
| - host: firefly.rancher.reymota.lab | |||||
| status: | |||||
| loadBalancer: {} | |||||
| @ -1,6 +1,6 @@ | |||||
| FROM mariadb | |||||
| FROM mariadb:latest | |||||
| LABEL maintainer="Celestino Rey <creylopez@yahoo.es>" | LABEL maintainer="Celestino Rey <creylopez@yahoo.es>" | ||||
| # Install any necessary packages | # Install any necessary packages | ||||
| RUN apt-get update | RUN apt-get update | ||||
| RUN apt install -y mysql-client | |||||
| RUN apt-get install -y mysql-client | |||||
| @ -0,0 +1,13 @@ | |||||
| export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') | |||||
| export REGISTRY=registry.reymota.es | |||||
| export IMG_VERSION = 2.0.1 | |||||
| install: | |||||
| echo "Creando imagen con version '${IMG_VERSION}' para la arquitectura '${ARQUITECTURA}' en el registry '${REGISTRY}'" | |||||
| docker build --no-cache -t ${REGISTRY}/mariadb-${ARQUITECTURA}:${IMG_VERSION} . | |||||
| docker push ${REGISTRY}/mariadb-${ARQUITECTURA}:${IMG_VERSION} | |||||
| @ -1,3 +1,3 @@ | |||||
| docker build --no-cache -t creylopez/mariadb:1.0 . | |||||
| docker push creylopez/mariadb:1.0 | |||||
| docker build --no-cache -t creylopez/mariadb:2.0 . | |||||
| docker push creylopez/mariadb:2.0 | |||||