add terraform project
This commit is contained in:
5
terraform/templates/install-disk-and-hostname.yaml.tmpl
Normal file
5
terraform/templates/install-disk-and-hostname.yaml.tmpl
Normal file
@@ -0,0 +1,5 @@
|
||||
machine:
|
||||
network:
|
||||
hostname: ${hostname}
|
||||
install:
|
||||
image: "factory.talos.dev/nocloud-installer/ce4c980550dd2ab1b17bbf2b08801c7eb59418eafe8f279833297925d67c7515:v1.11.0"
|
||||
55
terraform/templates/proxmox-ccm.yaml.tmpl
Normal file
55
terraform/templates/proxmox-ccm.yaml.tmpl
Normal file
@@ -0,0 +1,55 @@
|
||||
cluster:
|
||||
inlineManifests:
|
||||
- name: proxmox-cloud-controller-manager
|
||||
contents: |-
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: proxmox-cloud-controller-manager
|
||||
namespace: kube-system
|
||||
stringData:
|
||||
config.yaml: |
|
||||
clusters:
|
||||
- url: ${proxmox_url}/api2/json
|
||||
insecure: true
|
||||
token_id: "kubernetes@pve!ccm"
|
||||
token_secret: "${ccm_token_secret}"
|
||||
region: ${proxmox_region}
|
||||
- name: proxmox-csi-plugin
|
||||
contents: |-
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: proxmox-csi-plugin
|
||||
namespace: csi-proxmox
|
||||
stringData:
|
||||
config.yaml: |
|
||||
clusters:
|
||||
- url: ${proxmox_url}/api2/json
|
||||
insecure: true
|
||||
token_id: "kubernetes-csi@pve!csi"
|
||||
token_secret: "${csi_token_secret}"
|
||||
region: ${proxmox_region}
|
||||
- name: proxmox-hdd-sc
|
||||
contents: |-
|
||||
allowVolumeExpansion: true
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
annotations:
|
||||
storageclass.kubernetes.io/is-default-class: "true"
|
||||
name: proxmox-hdd-lvm
|
||||
parameters:
|
||||
csi.storage.k8s.io/fstype: xfs
|
||||
storage: hdd
|
||||
provisioner: csi.proxmox.sinextra.dev
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: WaitForFirstConsumer
|
||||
|
||||
externalCloudProvider:
|
||||
enabled: true
|
||||
manifests:
|
||||
- https://raw.githubusercontent.com/sergelogvinov/proxmox-cloud-controller-manager/main/docs/deploy/cloud-controller-manager.yml
|
||||
- https://raw.githubusercontent.com/sergelogvinov/proxmox-csi-plugin/main/docs/deploy/proxmox-csi-plugin.yml
|
||||
14
terraform/templates/static-ip.yaml.tmpl
Normal file
14
terraform/templates/static-ip.yaml.tmpl
Normal file
@@ -0,0 +1,14 @@
|
||||
machine:
|
||||
network:
|
||||
interfaces:
|
||||
- interface: eth0
|
||||
addresses:
|
||||
- ${ip_address}/${netmask}
|
||||
routes:
|
||||
- network: 0.0.0.0/0
|
||||
gateway: ${gateway}
|
||||
dhcp: false
|
||||
nameservers:
|
||||
%{ for ns in nameservers ~}
|
||||
- ${ns}
|
||||
%{ endfor ~}
|
||||
6
terraform/templates/vip-config.yaml.tmpl
Normal file
6
terraform/templates/vip-config.yaml.tmpl
Normal file
@@ -0,0 +1,6 @@
|
||||
machine:
|
||||
network:
|
||||
interfaces:
|
||||
- interface: ${interface}
|
||||
vip:
|
||||
ip: ${vip}
|
||||
Reference in New Issue
Block a user