2023-09-27 05:40:32 -04:00
|
|
|
apiVersion: cert-manager.io/v1
|
|
|
|
kind: Issuer
|
|
|
|
metadata:
|
|
|
|
name: selfsigned-issuer
|
|
|
|
labels:
|
|
|
|
app: s3proxy
|
|
|
|
spec:
|
|
|
|
selfSigned: {}
|
|
|
|
---
|
|
|
|
apiVersion: cert-manager.io/v1
|
|
|
|
kind: Certificate
|
|
|
|
metadata:
|
|
|
|
name: selfsigned-ca
|
|
|
|
labels:
|
|
|
|
app: s3proxy
|
|
|
|
spec:
|
|
|
|
isCA: true
|
|
|
|
commonName: s3proxy-selfsigned-ca
|
|
|
|
secretName: s3proxy-tls
|
|
|
|
privateKey:
|
|
|
|
algorithm: ECDSA
|
|
|
|
size: 256
|
|
|
|
dnsNames:
|
2023-10-12 08:34:51 -04:00
|
|
|
- "s3.us-east-1.amazonaws.com"
|
|
|
|
- "s3.us-east-2.amazonaws.com"
|
|
|
|
- "s3.us-west-1.amazonaws.com"
|
|
|
|
- "s3.us-west-2.amazonaws.com"
|
|
|
|
- "s3.eu-north-1.amazonaws.com"
|
|
|
|
- "s3.eu-south-1.amazonaws.com"
|
|
|
|
- "s3.eu-south-2.amazonaws.com"
|
|
|
|
- "s3.eu-west-1.amazonaws.com"
|
|
|
|
- "s3.eu-west-2.amazonaws.com"
|
|
|
|
- "s3.eu-west-3.amazonaws.com"
|
|
|
|
- "s3.eu-central-1.amazonaws.com"
|
|
|
|
- "s3.eu-central-2.amazonaws.com"
|
|
|
|
- "s3.ap-northeast-1.amazonaws.com"
|
|
|
|
- "s3.ap-northeast-2.amazonaws.com"
|
|
|
|
- "s3.ap-northeast-3.amazonaws.com"
|
|
|
|
- "s3.ap-east-1.amazonaws.com"
|
|
|
|
- "s3.ap-southeast-1.amazonaws.com"
|
|
|
|
- "s3.ap-southeast-2.amazonaws.com"
|
|
|
|
- "s3.ap-southeast-3.amazonaws.com"
|
|
|
|
- "s3.ap-southeast-4.amazonaws.com"
|
|
|
|
- "s3.ap-south-1.amazonaws.com"
|
|
|
|
- "s3.ap-south-2.amazonaws.com"
|
|
|
|
- "s3.me-south-1.amazonaws.com"
|
|
|
|
- "s3.me-central-1.amazonaws.com"
|
|
|
|
- "s3.il-central-1.amazonaws.com"
|
|
|
|
- "s3.af-south-1.amazonaws.com"
|
|
|
|
- "s3.ca-central-1.amazonaws.com"
|
|
|
|
- "s3.sa-east-1.amazonaws.com"
|
2023-09-27 05:40:32 -04:00
|
|
|
issuerRef:
|
|
|
|
name: selfsigned-issuer
|
2023-10-10 09:35:23 -04:00
|
|
|
kind: Issuer
|
2023-09-27 05:40:32 -04:00
|
|
|
group: cert-manager.io
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-10-12 07:27:02 -04:00
|
|
|
name: s3proxy
|
|
|
|
labels:
|
|
|
|
app: s3proxy
|
2023-09-27 05:40:32 -04:00
|
|
|
spec:
|
2023-10-12 07:27:02 -04:00
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: s3proxy
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: s3proxy
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: s3proxy
|
|
|
|
image: ghcr.io/edgelesssys/constellation/s3proxy:v2.13.0-pre
|
|
|
|
args:
|
2023-09-27 05:40:32 -04:00
|
|
|
- "--level=-1"
|
2023-10-12 07:27:02 -04:00
|
|
|
ports:
|
2023-09-27 05:40:32 -04:00
|
|
|
- containerPort: 4433
|
|
|
|
name: s3proxy-port
|
2023-10-12 07:27:02 -04:00
|
|
|
volumeMounts:
|
2023-09-27 05:40:32 -04:00
|
|
|
- name: tls-cert-data
|
|
|
|
mountPath: /etc/s3proxy/certs/s3proxy.crt
|
|
|
|
subPath: tls.crt
|
|
|
|
- name: tls-cert-data
|
|
|
|
mountPath: /etc/s3proxy/certs/s3proxy.key
|
|
|
|
subPath: tls.key
|
2023-10-12 07:27:02 -04:00
|
|
|
envFrom:
|
2023-09-27 05:40:32 -04:00
|
|
|
- secretRef:
|
|
|
|
name: s3-creds
|
2023-10-12 07:27:02 -04:00
|
|
|
volumes:
|
|
|
|
- name: tls-cert-data
|
|
|
|
secret:
|
|
|
|
secretName: s3proxy-tls
|
|
|
|
- name: s3-creds
|
|
|
|
secret:
|
|
|
|
secretName: s3-creds
|
2023-09-27 05:40:32 -04:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: s3proxy-service
|
2023-10-12 07:27:02 -04:00
|
|
|
labels:
|
|
|
|
app: s3proxy
|
2023-09-27 05:40:32 -04:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: s3proxy
|
|
|
|
ports:
|
2023-10-12 07:27:02 -04:00
|
|
|
- name: https
|
|
|
|
port: 443
|
|
|
|
targetPort: s3proxy-port
|
2023-09-27 05:40:32 -04:00
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: s3-creds
|
|
|
|
type: Opaque
|
|
|
|
stringData:
|
|
|
|
AWS_ACCESS_KEY_ID: "replaceme"
|
|
|
|
AWS_SECRET_ACCESS_KEY: "replaceme"
|