Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
skripting-section:bash:openshift-single-node-cluster [2019/03/25 16:39] – michael | skripting-section:bash:openshift-single-node-cluster [2019/08/15 15:49] (current) – [Openshift single-node Installation Skript] michael | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
+ | '' | ||
+ | |||
+ | **Wichtig zu beachten:** | ||
+ | * Das Script wird unter dem persönlichen User ausgeführt. | ||
+ | * '' | ||
+ | * Das Agend-forewarding ist bei einer Key-Authentisierung aktiviert. (Wichtig für Ansible) | ||
+ | * Vor dem Ausführen die Grösse des Speicher-yaml anpassen. "'' | ||
===== Skript Sourcecode ===== | ===== Skript Sourcecode ===== | ||
Line 110: | Line 117: | ||
# | # | ||
- | cat <<EOF > inventory.ini | + | cat <<EOF1 > inventory.ini |
[OSEv3: | [OSEv3: | ||
masters | masters | ||
Line 165: | Line 172: | ||
# | # | ||
- | EOF | + | EOF1 |
# | # | ||
Line 204: | Line 211: | ||
cd openshift-ansible && git fetch && git checkout release-${VERSION} && cd .. | cd openshift-ansible && git fetch && git checkout release-${VERSION} && cd .. | ||
- | sudo bash -c "cat <<EOF > /etc/hosts | + | sudo bash -c "cat <<EOF2 > /etc/hosts |
127.0.0.1 | 127.0.0.1 | ||
::1 | ::1 | ||
${IP} | ${IP} | ||
- | EOF" | + | EOF2" |
if [ -z $DISK ]; then | if [ -z $DISK ]; then | ||
Line 268: | Line 275: | ||
# Configure a Custom Certificate for the Image Registry | # Configure a Custom Certificate for the Image Registry | ||
## See here for more explanation: | ## See here for more explanation: | ||
- | cat <<EOF >> inventory.ini | + | cat <<EOF3 >> inventory.ini |
openshift_master_overwrite_named_certificates=true | openshift_master_overwrite_named_certificates=true | ||
Line 282: | Line 289: | ||
openshift_hosted_registry_routecertificates={" | openshift_hosted_registry_routecertificates={" | ||
openshift_hosted_registry_routetermination=reencrypt | openshift_hosted_registry_routetermination=reencrypt | ||
- | EOF | + | EOF3 |
# Add Cron Task to renew certificate | # Add Cron Task to renew certificate | ||
Line 301: | Line 308: | ||
if [ " | if [ " | ||
- | cat <<EOF2 > vol.yaml | + | cat <<EOF4 > vol.yaml |
apiVersion: v1 | apiVersion: v1 | ||
kind: PersistentVolume | kind: PersistentVolume | ||
Line 315: | Line 322: | ||
hostPath: | hostPath: | ||
path: / | path: / | ||
- | EOF2 | + | EOF4 |
for i in `seq 1 200`; | for i in `seq 1 200`; |