Kubernetes Deployment
This role, netbox_kubernetes
is part of the Ansible collection nofusscomputing.netbox
and contains all of the logic to configure and deploy Netbox to Kubernetes.
To deploy NetBox to kubernetes, run the following playbook.
Features
-
Custom python configuration files
/etc/netbox/config/*
-
NetBox Deployment
-
NetBox Service
-
PVC for Netbox Data
-
Redis Deployment
-
Deployment of the NetBox-GLPI Integration
Note
Deploying the netbox-glpi integration via this role, regardless of your custom variables. Sets the following variables to match this roles variables: Intstance Name, Namespace, and netbox API URL.
Kubernetes Manifests
All manifests within this role, are Jinja Templates. They obtain their variables from defaults/main.yaml
deployment.yaml.j2 | |
---|---|
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 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
|
Default Variables
As part of this role variables that are considered secrets can be set via environmental variables on the Ansible controller. This allows these values to be set via an AWX credential. The available variables are:
-
POSTGRES_HOST
=nfc_role_netbox_kubernetes_database_host
-
POSTGRES_PORT
=nfc_role_netbox_kubernetes_database_port
-
POSTGRES_USER
=nfc_role_netbox_kubernetes_database_user
-
POSTGRES_PASSWORD
=nfc_role_netbox_kubernetes_database_password
-
REDIS_HOST
=nfc_role_netbox_kubernetes_redis_host
-
REDIS_PORT
=nfc_role_netbox_kubernetes_redis_port
-
REDIS_USER
=nfc_role_netbox_kubernetes_redis_username
-
REDIS_PASSWORD
=nfc_role_netbox_kubernetes_redis_password
The above listed variables will default to the value within your inventory if not set via an environmental variable.
defaults/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 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
|
About:
This page forms part of our Project Netbox Ansible Collection.
Page Metadata
Version: ToDo: place files short git commit hereDate Created: 2024-04-11
Date Edited: 2024-04-13
Contribution:
Would You like to contribute to our Netbox Ansible Collection project? You can assist in the following ways:
- Edit This Page If there is a mistake or a way you can improve it.
- Add a Page to the Manual if you would like to add an item to our manual
- Raise an Issue if there is something about this page you would like to improve, and git is unfamiliar to you.
ToDo: Add the page list of contributors