산업 제조
산업용 사물 인터넷 | 산업자재 | 장비 유지 보수 및 수리 | 산업 프로그래밍 |
home  MfgRobots >> 산업 제조 >  >> Manufacturing Technology >> 산업기술

PLCnext의 클러스터 관리?

수년 동안 IT의 표준이 되었지만 아직 업계에 큰 영향을 주지는 않았습니다. 종종 그러한 기술은 다음과 같이 간주됩니다.
너무 복잡하고 불필요합니다. 발생하는 질문은 이점이 있습니까?

Kubernetes의 예를 사용한 PLCnext의 비전

쿠버네티스

Kubernetes는 무엇보다도 컨테이너를 사용하여 다양한 장치를 통해 네트워크를 형성하는 오케스트레이터(관리 시스템, 마스터)입니다. 시스템은 약간 다른 방식으로 응용 프로그램을 제공하는 데 사용됩니다.

전통적으로 응용 프로그램은 장치에서 배포 및 유지 관리되었습니다. 응용 프로그램이 실행되는 컴퓨터는 알려져 있습니다. 응용 프로그램이 다른 컴퓨터에서 실행되어야 하는 경우 이 작업은 사람이 수행해야 합니다. 컴퓨터 중 하나에 장애가 발생하면 컴퓨터의 모든 응용 프로그램을 더 이상 사용할 수 없습니다.

Kubernetes를 사용하면 마스터에게 애플리케이션의 상태 설명이 제공되고 나머지는 마스터가 처리합니다. 요청된 상태가 항상 유지되도록 합니다. 다만, 현재 어느 노드에서 애플리케이션이 실행되고 있는지는 알 수 없으나 원칙적으로는 접근이 가능하다.

질문 및 답변

상태 설명을 개탄하는 것

클러스터 설치 방법

애플리케이션 업데이트 수행 방법

노드가 실패하면 어떻게 됩니까

마스터가 실패하면 어떻게 됩니까

하드웨어에 대한 액세스가 필요하기 때문에 특정 애플리케이션은 특정 노드에서 실행해야 합니다.

세 개의 컨테이너(프론트엔드, 백엔드, 데이터베이스)로 구성된 애플리케이션의 상태 설명 예.

배포:

서비스:

인그레스:

# Kind of the Deployment
kind: Deployment
apiVersion: apps/v1
metadata:
  name: MyApplicationName
  labels:
    app: MyApplication
    MyApplication: MyApplicationName
    namespace: default

## Container specs
    spec:
      containers:

## Container spec for Frontend
## Name for the Container
      - name: MyContainer-frontend

## Container Image to use      
        image: MyApplicationImage_frontend

## Ports for the frontend, http        
        ports:
        - containerPort: 80

## Container spec for Backend      
      - name: MyContainerName-backend
        image: MyApplicationImage_backend
        ports:
        - containerPort: 3000

## Container spec for mongodb          
      - name: MyContainerName-mongo
        image: mongo:3.4

## Startup commands for Mongo DB
        command:
        - "mongod"
        - "--bind_ip"
        - "0.0.0.0"
        ports:
        - containerPort: 27017    
---
## Service declaration, expose Ports to the kubernetes api (only internal rechable)

apiVersion: v1
kind: Service
metadata:
  name: MyApplicationName
spec:
  ports:
  - name: frontend
    targetPort: 80
    port: 80
  - name: backend
    targetPort: 3000
    port: 3000
  selector:
    app: MyApplication
    task: MyApplicationName     

---    
## Ingress declaration, bind proxy to fronted and backend

apiVersion: networking.k8s.io/v1beta1
kind: Ingress

## Bind ingress to traefik service proxy

metadata:
  name:MyApplicationName
  annotations:
    kubernetes.io/ingress.class: traefik

## Ingress class for frontend, map dns ingress to service port 80 
spec:
  rules:
  - host: MyApp.Mydomain.de
    http:
      paths:
      - path: /
        backend:
          serviceName:MyApplicationName
          servicePort: frontend

## Ingress class for backend, map dns ingress to service port 3000          
  - host: MyApplicationName.MyDomain.de
    http:
      paths:
      - path: /api
        backend:
          serviceName:MyApplicationName
          servicePort: backend

보세요

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/
https://github.com/k3s-io/k3s
https://github.com/rancher/k3d
https://github.com/inercia/k3x


산업기술

  1. 스탬핑이란 무엇입니까?- 유형, 작동 및 적용
  2. 마찰 용접이란 무엇입니까? - 작동 및 응용
  3. 용사 란 무엇입니까?- 유형 및 적용
  4. 주조 생산에 규산나트륨 적용
  5. PLCnext Technology의 VLAN 설정
  6. grpcurl을 사용하는 원격 gRPC
  7. PLCnext CLI 템플릿
  8. DHCP에서 PlcNext 웹 서버에 액세스
  9. C#에서 간단한 PLCnext 콘솔 애플리케이션을 만드는 방법
  10. PLCnext Tableau 대시보드