Skip to content

Does not work with http endpoint even with insecureTLSSkipVerify as true #660

@metalshanked

Description

@metalshanked

Rancher Server Setup

  • Rancher version: 2.10.2
  • Installation option (Docker install/Helm Chart): Helm
  • Kubernetes Version and Engine: 1.31.4

Describe the bug

The S3 compatible object store like minio does not work with http

failed to check if s3 bucket [rancher-backup] exists, error: Head
        "https://minio.k8:9000/rancher-backup/": http: server gave HTTP
        response to HTTPS client
apiVersion: resources.cattle.io/v1
kind: Backup
metadata:
  creationTimestamp: '2025-02-05T14:24:50Z'
  generation: 9
  managedFields:
    - apiVersion: resources.cattle.io/v1
      fieldsType: FieldsV1
  
      manager: backup-restore-operator
      operation: Update
      subresource: status
      time: '2025-02-05T14:59:17Z'
  name: s3-onetime-backup
  resourceVersion: '5314865'
  uid: f514eeb0-bc31-47c6-bc1b-54c4aefcc249
spec:
  encryptionConfigSecretName: ''
  resourceSetName: rancher-resource-set
  retentionCount: 10
  storageLocation:
    s3:
      bucketName: rancher-backup
      credentialSecretName: minio-creds
      credentialSecretNamespace: default
      endpoint: minio.k8:9000
      endpointCA: ''
      folder: rancherbackup
      insecureTLSSkipVerify: true
      region: us-east-1
status:
  backupType: ''
  conditions:
    - lastUpdateTime: '2025-02-05T14:59:17Z'
      message: >-
        failed to check if s3 bucket [rancher-backup] exists, error: Head
        "https://minio.k8:9000/rancher-backup/": http: server gave HTTP
        response to HTTPS client
      reason: Error
      status: 'False'
      type: Reconciling
    - lastUpdateTime: '2025-02-05T14:24:53Z'
      message: Retrying
      status: Unknown
      type: Ready
  filename: ''
  lastSnapshotTs: ''
  nextSnapshotAt: ''
  observedGeneration: 0
  storageLocation: ''
  summary: ''

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions