Code Monkey home page Code Monkey logo

Comments (3)

ujala-singh avatar ujala-singh commented on June 23, 2024

@javsalgar Please help me on this.

from charts.

gecube avatar gecube commented on June 23, 2024

@ujala-singh did you try the latest chart version? I see that it is not bitnami/etcd 9.15.2 but 10.0.0 with appVersion: 3.5.12

from charts.

ujala-singh avatar ujala-singh commented on June 23, 2024

Was able to create the etcd cluster with the below config:

helm install mycertm bitnami/cert-manager --set installCRDs=true

cat <<EOF> user.yaml
initialClusterState: "new"
replicaCount: 3

image:
  debug: true

persistence:
  accessModes:
    - ReadWriteMany
  size: 2Gi

volumePermissions:
  enabled: true

auth:
  rbac:
    enabled: true
    create: true
    allowNoneAuthentication: false
    rootPassword: "secret"
  token:
    enabled: true
    type: jwt
  peer:
    secureTransport: true
    useAutoTLS: false
    existingSecret: etcd-peer-tls
    enableAuthentication: true
    certFilename: tls.crt
    certKeyFilename: tls.key
    caFilename: ca.crt
  client:
    secureTransport: true
    useAutoTLS: false
    existingSecret: etcd-client-tls
    enableAuthentication: true
    certFilename: tls.crt
    certKeyFilename: tls.key
    caFilename: ca.crt
EOF

helm install myetcd bitnami/etcd -f user.yaml 

sleep 60

cat <<EOF>certs.yaml 
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: etcd-client
spec:
  secretName: etcd-client-tls
  issuerRef:
    group: cert-manager.io
    kind: ClusterIssuer
    name: selfsigned-issuer
  usages:
  - server auth
  - client auth
  dnsNames:
  - 'myetcd.default.svc.cluster.local'
  - '*.myetcd.default.svc.cluster.local'
  - 'myetcd-headless.default.svc.cluster.local'
  - '*.myetcd-headless.default.svc.cluster.local'
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: etcd-peer
spec:
  secretName: etcd-peer-tls
  issuerRef:
    group: cert-manager.io
    kind: ClusterIssuer
    name: selfsigned-issuer
  usages:
  - server auth
  - client auth
  dnsNames:
  - 'myetcd.default.svc.cluster.local'
  - '*.myetcd.default.svc.cluster.local'
  - 'myetcd-headless.default.svc.cluster.local'
  - '*.myetcd-headless.default.svc.cluster.local'
EOF

kubectl apply -f certs.yaml

cat <<EOF>issuer.yaml
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: selfsigned-issuer
spec:
  selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: selfsigned-issuer
  namespace: default
spec:
  selfSigned: {}
EOF

kubectl apply -f issuer.yaml

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.