secretflow / kuscia

Kuscia(Kubernetes-based Secure Collaborative InfrA) is a K8s-based privacy-preserving computing task orchestration framework.
https://www.secretflow.org.cn/docs/kuscia/latest/zh-Hans
Apache License 2.0
70 stars 49 forks source link

使用k8s部署runp模式,pod拉起失败 #370

Closed FakeTrader closed 1 week ago

FakeTrader commented 1 month ago

Issue Type

Others

Search for existing issues similar to yours

Yes

Kuscia Version

0.7.0b0

Link to Relevant Documentation

No response

Question Details

deployment配置如下

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kuscia-autonomy-alice
  namespace: autonomy-alice
spec:
  replicas: 2
  selector:
    matchLabels:
      app: kuscia-autonomy-alice
  template:
    metadata:
      labels:
        app: kuscia-autonomy-alice
    spec:
      containers:
        - command:
            - tini
            - --
            - kuscia
            - start
            - -c
            - etc/conf/kuscia.yaml
          env:
            - name: REGISTRY_ENDPOINT
              value: secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow
            - name: NAMESPACE
              value: alice
            - name: TZ
              value: Asia/Shanghai
          image: secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/kuscia-secretflow:latest
          imagePullPolicy: IfNotPresent
          name: alice
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts:
            - mountPath: /home/kuscia/var/tmp
              name: kuscia-var-tmp
            - mountPath: /home/kuscia/etc/conf/kuscia.yaml
              name: kuscia-config
              subPath: kuscia.yaml
          workingDir: /home/kuscia
      automountServiceAccountToken: false
      volumes:
        - emptyDir: {}
          name: kuscia-var-tmp
        - configMap:
            defaultMode: 420
            name: kuscia-autonomy-alice-cm
          name: kuscia-config

报错信息

[root@cm-dssn-node1 Alice]# kubectl logs kuscia-autonomy-alice-7cc7bcf49d-5xs4h  -n autonomy-alice
2024-07-09 10:17:14.557 INFO modules/modules.go:204 Start to init all secret backends ... 
2024-07-09 10:17:14.557 WARN modules/modules.go:211 Init all secret backend but no provider found, creating default mem type
2024-07-09 10:17:14.557 INFO modules/modules.go:216 Finish Initializing all secret backends
2024-07-09 10:17:14.558 INFO tls/crypt.go:313 Generate cert with key, subject[alice]
2024-07-09 10:17:14.561 INFO tls/crypt.go:313 Generate cert with key, subject[alice]
2024-07-09 10:17:14.564 INFO modules/coredns.go:180 Start preparing coredns resolv.conf, root dir /home/kuscia/
2024-07-09 10:17:14.564 INFO modules/coredns.go:203 Finish preparing coredns resolv.conf
.:53
2024-07-09 10:17:14.566 INFO modules/coredns.go:169 coredns is ready
2024-07-09 10:17:14.567 INFO supervisor/supervisor.go:72 [k3s] start and watch subprocess
2024-07-09 10:17:14.567 INFO supervisor/supervisor.go:79 [k3s] try to start new process
2024-07-09 10:17:23.938 INFO modules/k3s.go:369 apply /home/kuscia/crds/v1alpha1/kuscia.secretflow_interopconfigs.yaml
2024-07-09 10:17:23.983 INFO modules/k3s.go:369 apply /home/kuscia/crds/v1alpha1/kuscia.secretflow_domaindatasources.yaml
2024-07-09 10:17:24.013 INFO modules/k3s.go:369 apply /home/kuscia/crds/v1alpha1/kuscia.secretflow_gateways.yaml
2024-07-09 10:17:24.076 INFO modules/k3s.go:369 apply /home/kuscia/crds/v1alpha1/kuscia.secretflow_kusciadeploymentsummaries.yaml
The CustomResourceDefinition "kusciadeployments.kuscia.secretflow" is invalid: spec.scope: Invalid value: "Cluster": field is immutable
2024-07-09 10:17:24.121 FATAL modules/k3s.go:366 apply /home/kuscia/crds/v1alpha1/kuscia.secretflow_kusciadeployments.yaml err:exit status 1
aokaokd commented 1 month ago

您好,请使用新版本的kuscia进行重试

github-actions[bot] commented 2 weeks ago

Stale issue message. Please comment to remove stale tag. Otherwise this issue will be closed soon.