So now if we assume what if we don’t use artifacts…It will be really very difficult over time.hat is why Artifacts are important to hold onto throughout the development process and also after that. In CI/CD process when we build our project we obtain an artifactory after a build.So further in deployment phase we deploy these artifactories on our production / pre-production server. #5: Access Nexus Repository Web Interface.#4: Run Nexus as a service using Systemd.#3: Install Nexus Repository on Ubuntu 20.04 LTS.#2: Download Nexus Repository Manager setup on Ubuntu 20.04 LTS.#1: Install OpenJDK 1.8 on Ubuntu 20.04 LTS.Let’s run these commands in the same directory. apiVersion: v1 kind: Namespace metadata: name: devops-ns - apiVersion: apps/v1 kind: Deployment metadata: name: "nexus-deployment" namespace: devops-ns labels: app: "nexus" spec: replicas: 1 strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 selector: matchLabels: app: "nexus" template: metadata: labels: app: "nexus" spec: containers: - image: sonatype/nexus3:3.38.0 env: - name: MAX_HEAP value: "1000m" - name: MIN_HEAP value: "400m" imagePullPolicy: Always name: "nexus" ports: - containerPort: 8081 name: "nexus" volumeMounts: - name: nexus-data mountPath: /nexus-data - name: tz-istanbul mountPath: /etc/localtime volumes: - name: nexus-data hostPath: path: /nexus-data - name: tz-istanbul hostPath: path: /usr/share/zoneinfo/Europe/Istanbul restartPolicy: Always - apiVersion: v1 kind: Service metadata: name: nexus-svc namespace: devops-ns spec: type: NodePort selector: app: nexus ports: - name: "8081" targetPort: 8081 port: 8081 nodePort: 32000 We will create Kubernetes objects like namespace, deployment, and service. We can convert Docker compose file into a Kubernetes file as follows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |