-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmain.yaml
137 lines (118 loc) · 4.43 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
#######################################
### Basic configuration ###
#######################################
# Set the Fully Qualified Domain Name of a Microshift host
fqdn: microshift.dev
# NOTE: To deploy Microshift > 4.8, you should provide pull-secret.txt content.
# It can be generated here: https://cloud.redhat.com/openshift/create/local
openshift_pull_secret: ""
# Set the location, where the pull-secret.txt content will be stored,
# Later it will be used by cri-o runtime environment.
registry_secret_path: /etc/crio/openshift-pull-secret
# Hide logs when Ansible is executed.
hide_sensitive_logs: true
# Download and copy required binaries to setup Microshift.
# For example `oc` binary.
setup_tools: true
### Microshift ###
# Default settings from /etc/microshift/config.yaml.default
# https://github.com/openshift/microshift/blob/release-4.14/packaging/microshift/config.yaml
microshift_config:
apiServer:
subjectAltNames:
- "{{ fqdn }}"
- "{{ ansible_default_ipv4.address }}"
# advertiseAddress: ""
dns:
baseDomain: "{{ fqdn }}"
# debugging:
# logLevel: Normal
# etcd:
# memoryLimitMB: 0
# manifests:
# kustomizePaths:
# - /usr/lib/microshift/manifests
# - /usr/lib/microshift/manifests.d/*
# - /etc/microshift/manifests
# - /etc/microshift/manifests.d/*
# network:
# clusterNetwork:
# - 10.42.0.0/16
# serviceNetwork:
# - 10.43.0.0/16
# serviceNodePortRange: 30000-32767
# node:
# hostnameOverride: ""
# nodeIP: ""
# Default settings from /etc/microshift/lvmd.yaml.default
# https://github.com/openshift/microshift/blob/release-4.14/packaging/microshift/lvmd.yaml
# NOTE: When the volume group size is too small, setting spare-gb to 0 can
# avoid to have scheduling errors, such as:
#
# 0/1 nodes are available: 1 node(s) did not have enough free storage.
#
# To avoid causing issue with dynamic volume provisioning due to insufficient
# disk space, set spare-gb to 0.
microshift_lmvd:
# socket-name: /run/lvmd/lvmd.socket
device-classes:
- name: default
volume-group: rhel
default: true
spare-gb: 0
# stripe: ""
# stripe-size: ""
# lvcreate-options:
# - ""
#######################################
### OLM ###
#######################################
# Install the OLM - https://olm.operatorframework.io/
setup_olm: false
# https://github.com/operator-framework/operator-lifecycle-manager/releases
olm_version: "v0.28.0"
# Version of the Operator SDK
# https://github.com/operator-framework/operator-sdk/releases
operator_sdk_version: "v1.36.1"
#######################################
### Openshift Storage ###
#######################################
#
# Create expected VG "rhel" (for topolvm/openshift-storage)
# The VG is created inside a file as a loop device. This is a handy solution
# for the CI and Microshift testing purpose.
# When the VG is already available on the machine then not VG is populated.
vg_create: true
# Set the path for a file, where later Ansible would create a LVM partition.
# It would be needed when `delete_openshift_storage` is set to false.
disk_file_path: /mnt/microshift-storage-file
# Size of the partition, that would be used by openshift-storage.
# It would be needed when `delete_openshift_storage` is set to false.
disk_file_size: 20G
# Whether or not to create a sparse file
disk_file_sparsed: false
# Name of the volume group used by the openshift-storage to deploy topolvm.
# Default value for Microshift is `rhel`.
vg_name: rhel
#######################################
### Others ###
#######################################
# Configure the DNSMasq service to redirect service addresses to proper
# ip address.
configure_dnsmasq: false
# Set the ip address of remote Microshift machine to configure local
# DNSMasq service to redirect DNS queries for {{ fqdn }} domain
# to the Microshift machine. If the value is empty, it will configure
# first IP address of loadbalancer or Openshift Router.
microshift_frontend_address: ""
# Additional addresses that should be resolved by the DNSMasq and redirected
# to microshift_frontend_address (if configure). Otherwise redirect to
# loadbalancer or Openshift router.
microshift_additional_addresses: []
# Do not use it on the production!
# That feature might be useful for the CI, especially when the disk is slow.
# This does not support host restart
enable_ramdisk: false
# Ramdisk size
ramdisk_size: 512m