首先上面的url是阿里云官方的教程,以下是调度过程中发生的一些插曲
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: miyuan-dispatchmoment-deploy
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: miyuan-dispatchmoment-deploy
    spec:
      containers:
        - image: >-
            registry-vpc.cn-hangzhou.aliyuncs.com/yunfaquan-prod/miyuan-dispatchmoment-deploy:20211009_b
          imagePullPolicy: Always
          name: miyuan-dispatchmoment-deploy
          ports:
            - containerPort: 7898
              protocol: TCP
          resources:
            limits:
              memory: 8Gi
            requests:
              memory: 2Gi
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      imagePullSecrets:
        - name: alihzregistry-secret
      nodeName: cn-hangzhou.192.168.148.34  --------改这里
总结一下如何制定pod去某个节点运行。。修改yaml。在spec.template.spec.nodeName。增加这个节点属性。值时具体节点的名字