Trying to follow the instructions to try AirByte i...
# replication-troubleshooting
y
Trying to follow the instructions to try AirByte in EKS doing the following:
Copy code
eksctl create cluster
helm repo add airbyte https://airbytehq.github.io/helm-charts
helm repo update
helm search repo airbyte

========
NAME                            	CHART VERSION	APP VERSION  	DESCRIPTION                                       
airbyte/airbyte                 	0.45.0       	0.41.0       	Helm chart to deploy airbyte                      
airbyte/airbyte-bootloader      	0.45.0       	0.41.0       	Helm chart to deploy airbyte-bootloader           
airbyte/airbyte-cron            	0.40.37      	0.40.17      	Helm chart to deploy airbyte-cron                 
airbyte/connector-builder-server	0.45.0       	0.41.0       	Helm chart to deploy airbyte-connector-builder-...
airbyte/cron                    	0.45.0       	0.41.0       	Helm chart to deploy airbyte-cron                 
airbyte/metrics                 	0.45.0       	0.40.3       	Helm chart to deploy airbyte-metrics              
airbyte/pod-sweeper             	0.45.0       	0.39.37-alpha	Helm chart to deploy airbyte-pod-sweeper          
airbyte/server                  	0.45.0       	0.41.0       	Helm chart to deploy airbyte-server               
airbyte/temporal                	0.45.0       	0.41.0       	Helm chart to deploy airbyte-temporal             
airbyte/webapp                  	0.45.0       	0.41.0       	Helm chart to deploy airbyte-webapp               
airbyte/worker                  	0.45.0       	0.41.0       	Helm chart to deploy airbyte-worker       
=======

helm install 0.45.0 airbyte/airbyte
once that returns I get:
Copy code
kubectl get pods 

NAME                        READY   STATUS    RESTARTS   AGE
0.45.0-airbyte-bootloader   0/1     Error     0          19m
airbyte-db-0                0/1     Pending   0          19m
airbyte-minio-0             0/1     Pending   0          19m
Any idea how to diagnose what might be going on?
0.45.0-airbyte-bootloader
Copy code
Events (5)
Type
Reason
Age
From
Message
Normal	Scheduled	23 minutes	default-scheduler	Successfully assigned default/0.45.0-airbyte-bootloader to ip-192-168-15-239.eu-west-1.compute.internal
Normal	Pulling	23 minutes	kubelet	Pulling image "airbyte/bootloader:0.41.0"
Normal	Pulled	23 minutes	kubelet	Successfully pulled image "airbyte/bootloader:0.41.0" in 12.16633048s
Normal	Created	23 minutes	kubelet	Created container airbyte-bootloader-container
Normal	Started	23 minutes	kubelet	Started container airbyte-bootloader-container
airbyte-minio-0
Copy code
Warning	FailedScheduling	13 minutes	default-scheduler	running PreBind plugin "VolumeBinding": binding volumes: timed out waiting for the condition
airbyte-db-0
Copy code
Warning	FailedScheduling	14 minutes	default-scheduler	running PreBind plugin "VolumeBinding": binding volumes: timed out waiting for the condition
Copy code
kubectl describe pvc                             
Name:          airbyte-minio-pv-claim-airbyte-minio-0
Namespace:     default
StorageClass:  gp2
Status:        Pending
Volume:        
Labels:        app.kubernetes.io/instance=0.45.0
               app.kubernetes.io/name=0.45.0-minio
Annotations:   volume.beta.kubernetes.io/storage-provisioner: ebs.csi.aws.com
               volume.kubernetes.io/selected-node: ip-xxx-xxx-xx-xxx.eu-west-1.compute.internal
               volume.kubernetes.io/storage-provisioner: ebs.csi.aws.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Used By:       airbyte-minio-0
Events:
  Type    Reason                Age                  From                         Message
  ----    ------                ----                 ----                         -------
  Normal  ExternalProvisioning  32m (x263 over 97m)  persistentvolume-controller  waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator
  Normal  ExternalProvisioning  25m (x9 over 27m)    persistentvolume-controller  waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator
  Normal  ExternalProvisioning  23s (x101 over 25m)  persistentvolume-controller  waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator


Name:          airbyte-volume-db-airbyte-db-0
Namespace:     default
StorageClass:  gp2
Status:        Pending
Volume:        
Labels:        app.kubernetes.io/instance=0.45.0
               app.kubernetes.io/name=0.45.0-db
Annotations:   volume.beta.kubernetes.io/storage-provisioner: ebs.csi.aws.com
               volume.kubernetes.io/selected-node: ip-xxx-xxx-xx-xxx.eu-west-1.compute.internal
               volume.kubernetes.io/storage-provisioner: ebs.csi.aws.com
Finalizers:    [kubernetes.io/pvc-protection]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Used By:       airbyte-db-0
Events:
  Type    Reason                Age                  From                         Message
  ----    ------                ----                 ----                         -------
  Normal  ExternalProvisioning  32m (x263 over 97m)  persistentvolume-controller  waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator
  Normal  ExternalProvisioning  25m (x9 over 27m)    persistentvolume-controller  waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator
  Normal  ExternalProvisioning  9s (x102 over 25m)   persistentvolume-controller  waiting for a volume to be created, either by external provisioner "ebs.csi.aws.com" or manually created by system administrator
Searching this slack it looks like a lot of folks have hit this. Is there a solution to this issue?
@Nataly Merezhuk (Airbyte) Any ideas?
b
I got fed up doing it myself and used plural. It was a couple clicks and done. The only issue I have now is that I need SSO login enabled in the salesforce connector. I can code it but dont understand the salesforce login flow to code it.
👍🏼 1
s
Check the response from AWS support team in the link below and that should help you progress - https://stackoverflow.com/questions/73871493/error-while-installing-mongodb-in-aws-eks-cluster-running-prebind-plugin-volu
y
Thanks @Srikanth Sudhindra I found that SO to but, was not able to figure out how to use that info to help me. I am new to AirByte and Kubernetes so I am sure someone who knows what they are doing it would help them. I found this and this much easier-to-follow reference and got me past that error. Now I am doing this in my yaml and I think it is working but still need to test it with AirByte again. There is a lot I don't like about that in the yaml so need to sort out how to make it less brittle and test that this actually works too:
Copy code
preBootstrapCommands:
      - "wget -qO- https://raw.githubusercontent.com/kubernetes-sigs/aws-ebs-csi-driver/v0.10.0/docs/example/kubernetes/driver-registrar-1.0.1.yaml | sed 's/namespace: kube-system/namespace: kube-system\n      serviceAccountName: aws-ebs-csi-driver/g' | kubectl apply -f -"
      - "wget -qO- https://raw.githubusercontent.com/kubernetes-sigs/aws-ebs-csi-driver/v0.10.0/docs/example/kubernetes/aws-ebs-csi-driver-1.0.0.yaml | sed 's/namespace: kube-system/namespace: kube-system\n      serviceAccountName: aws-ebs-csi-driver/g' | kubectl apply -f -"
Now I am on to figuring out how to configure the PVC. I think it is something like this but I've not had a chance to test this yet either. Pretty sure this still needs some tweaking. I am really new to this stuff so I feel like it takes me forever to figure this stuff out...
Copy code
storageClasses:
    - name: gp2
      provisioner: kubernetes.io/aws-ebs
      parameters:
        type: gp2
  resources:
    - apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        name: dnastorage
      spec:
        accessModes:
          - ReadWriteOnce
        storageClassName: gp2
        resources:
          requests:
            storage: 1Gi
    - apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: dnaapp
      spec:
        replicas: 1
        selector:
          matchLabels:
            app: dnaapp
        template:
          metadata:
            labels:
              app: dnaapp
          spec:
            containers:
              - name: myapp
                image: nginx
                volumeMounts:
                  - name: dnadata
                    mountPath: /data
            volumes:
              - name: dnadata
                persistentVolumeClaim:
                  claimName: dnastorage
@Brian Fertig Would you be willing to DM me a sanitized version of your CloudFormation config that I could reverse engineer into a working yaml file. Happy to share back what I end up with that makes it work.
I was hopeful that AirByte's K8S guide was usable...
Or @Brian Fertig I've done a lot of SFDC API access through the years with and without SSO so I can trade my knowledge on that part
b
Yepher thank you. Yes I will get you a cloudformation script and send it over. I know how to setup the app manager and such but the auth flow to get the token is where I am stuck. I need to get the token from a c# application as well I plan to change the salesforce connector to support SSO from an AAD iDP if you could give me any insight into how to do this I would appreciate it.
a
Hi @Yepher, I encountered the same issue while trying to deploy Airbyte on an EKS cluster. I was able to solve it by following this guide you mentionned. I am also new to both K8s and Airbyte but from my understanding, both minio and db pods try to create an EBS volume to persist storage. To allow them to do so, I also explicitly allowed my nodes to create EBS volumes. Here’s a snippet of the cluster.yaml I used to create the cluster :
Copy code
managedNodeGroups:
  - name: ng1-private
    instanceType: m5.large
    minSize: 1
    maxSize: 3
    volumeSize: 50
    volumeType: gp2
    desiredCapacity: 2
    privateNetworking: true
    iam:
      withAddonPolicies:
        autoScaler: true
        ebs: true
        fsx: true
        efs: true