14 lines
309 B
YAML
14 lines
309 B
YAML
|
apiVersion: v1
|
||
|
kind: ConfigMap
|
||
|
metadata:
|
||
|
name: update-config
|
||
|
data:
|
||
|
custom-script.sh: |
|
||
|
#!/bin/sh
|
||
|
|
||
|
HOSTS_FILE="/etc/hosts"
|
||
|
|
||
|
# Ajoutez l'entrée au fichier hosts
|
||
|
MINIO_SERVICE_IP="${MINIO_SERVICE_HOST}"
|
||
|
MINIO_NAME="${MINIO_SERVICE_NAME}"
|
||
|
echo "$MINIO_SERVICE_IP" minio >> $HOSTS_FILE
|