Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Xline cluster with dns #351

Closed
1 task done
liangyuanpeng opened this issue Jun 29, 2023 · 0 comments · Fixed by #352
Closed
1 task done

[Feature]: Xline cluster with dns #351

liangyuanpeng opened this issue Jun 29, 2023 · 0 comments · Fixed by #352
Labels
enhancement New feature or request
Milestone

Comments

@liangyuanpeng
Copy link
Contributor

Description about the feature

Xline can not working with dns on kubernetes , Just got the error of Error: invalid socket address syntax, here is the yaml:

apiVersion: v1
kind: Service
metadata:
  name: xline
  labels:
    app: xline
spec:
  selector:
    app: xline
  ports:
  - name: xline
    port: 2379
  clusterIP: None

---
apiVersion: v1
kind: Service
metadata:
  name: xline
  labels:
    app: xline
spec:
  selector:
    app: xline
  ports:
  - name: xline
    protocol: TCP
    port: 2379
    targetPort: 2379

---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: xline
spec:
  serviceName: xline
  replicas: 3
  selector:
    matchLabels:
      app: xline
  template:
    metadata:
      labels:
        app: xline
    spec:
      containers:
      - name: xline
        image: datenlord/xline:v0.4.1
        command:
        - /bin/sh
        - -c
        - xline --name $POD_NAME --members xline-0=xline-0:2379,xline-1=xline-1:2379,xline-2=xline-2:2379 --data-dir /var/lib/xline --storage-engine rocksdb
        resources:
          requests:
            cpu: "500m"
            memory: "500Mi"
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        ports:
        - containerPort: 2379
          name: xline
          protocol: TCP
        volumeMounts:
        - name: data
          mountPath: /var/lib/xline
  volumeClaimTemplates:
  - metadata:
      name: data
    spec:
      accessModes: [ "ReadWriteOnce" ]
      resources:
        requests:
          storage: 200Mi

Remind me if i missed something,Thanks.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@liangyuanpeng liangyuanpeng added the enhancement New feature or request label Jun 29, 2023
bsbds added a commit to bsbds/Xline that referenced this issue Jun 29, 2023
Closes: xline-kv#351

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
bsbds added a commit to bsbds/Xline that referenced this issue Jun 29, 2023
Closes: xline-kv#351

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
Phoenix500526 pushed a commit that referenced this issue Jun 30, 2023
Closes: #351

Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com>
@Phoenix500526 Phoenix500526 added this to the v0.5.0 milestone Aug 5, 2023
@Phoenix500526 Phoenix500526 reopened this Dec 12, 2023
@Phoenix500526 Phoenix500526 linked a pull request Dec 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants