This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl apply -f calico.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p $HOME/.kube | |
| sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config | |
| sudo chown $(id -u):$(id -g) $HOME/.kube/config | |
| export KUBECONFIG=/etc/kubernetes/admin.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubeadm join 192.168.10.27:6443 --token 7cnzxy.232lmy0cj2y05krx --discovery-token-ca-cert-hash sha256:4a71cd34ae502fa788045db4c7e9a2122945fe3b51394c9949a0d93315ed7f6b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubeadm init --pod-network-cidr=142.20.0.0/16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-mark unhold kubeadm kubelet kubectl && \ | |
| apt-get update && apt-get install -y kubeadm=1.15.6-00 kubelet=1.15.6-00 kubectl=1.15.6-00 && \ | |
| apt-mark hold kubeadm kubelet kubectl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update && sudo apt-get install -y apt-transport-https curl | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list | |
| deb https://apt.kubernetes.io/ kubernetes-xenial main | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.prueba.entities; | |
| @Entity(name="prueba") | |
| @Table(name="PRUEBA", uniqueConstraints = { | |
| @UniqueConstraint(columnNames = { "moduleName", "patchName"}, name = "unique_patch") }) | |
| public class Prueba extends Base { | |
| @Column(length=50) | |
| private String moduleName; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.prueba.annotation; | |
| import java.io.Serializable; | |
| import java.util.Properties; | |
| import org.hibernate.HibernateException; | |
| import org.hibernate.MappingException; | |
| import org.hibernate.engine.spi.SessionImplementor; | |
| import org.hibernate.id.enhanced.SequenceStyleGenerator; | |
| import org.hibernate.internal.util.config.ConfigurationHelper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.prueba.entities; | |
| import java.io.Serializable; | |
| import javax.persistence.GeneratedValue; | |
| import javax.persistence.GenerationType; | |
| import javax.persistence.Id; | |
| import javax.persistence.MappedSuperclass; | |
| import javax.persistence.Version; |