Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Add nodeportlocal akodeploymentconfig as default adc #4556

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,57 @@ spec:
networksConfig:
nsxtT1LR: #@ values.akoOperator.config.avi_nsxt_t1_lr
#@ end

#@overlay/match by=overlay.subset({"kind": "AKODeploymentConfig", "metadata": {"name": "install-ako-for-all-npl"}})
---
#@overlay/replace
apiVersion: networking.tkg.tanzu.vmware.com/v1alpha1
kind: AKODeploymentConfig
metadata:
name: install-ako-for-all-npl
chenlin07 marked this conversation as resolved.
Show resolved Hide resolved
spec:
#@overlay/match missing_ok=True
clusterSelector:
matchLabels:
nodeportlocal: "true"
chenlin07 marked this conversation as resolved.
Show resolved Hide resolved
#@ if values.akoOperator.config.avi_controller_version != "":
#@overlay/match missing_ok=True
controllerVersion: #@ values.akoOperator.config.avi_controller_version
chenlin07 marked this conversation as resolved.
Show resolved Hide resolved
#@ end
cloudName: #@ values.akoOperator.config.avi_cloud_name
serviceEngineGroup: #@ values.akoOperator.config.avi_service_engine_group
controller: #@ values.akoOperator.config.avi_controller
adminCredentialRef:
name: #@ values.akoOperator.config.avi_admin_credential_name
namespace: #@ values.akoOperator.namespace
certificateAuthorityRef:
name: #@ values.akoOperator.config.avi_ca_name
namespace: #@ values.akoOperator.namespace
dataNetwork:
name: #@ values.akoOperator.config.avi_data_network
cidr: #@ values.akoOperator.config.avi_data_network_cidr
controlPlaneNetwork:
name: #@ values.akoOperator.config.avi_control_plane_network
cidr: #@ values.akoOperator.config.avi_control_plane_network_cidr
extraConfigs:
#@ if values.akoOperator.config.avi_cni_plugin:
#@overlay/match missing_ok=True
cniPlugin: #@ values.akoOperator.config.avi_cni_plugin
chenlin07 marked this conversation as resolved.
Show resolved Hide resolved
#@ end
disableStaticRouteSync: #@ values.akoOperator.config.avi_disable_static_route_sync
ingress:
disableIngressClass: #@ values.akoOperator.config.avi_disable_ingress_class
defaultIngressController: #@ values.akoOperator.config.avi_ingress_default_ingress_controller
#@ if values.akoOperator.config.avi_ingress_shard_vs_size != "":
#@overlay/match missing_ok=True
shardVSSize: #@ values.akoOperator.config.avi_ingress_shard_vs_size
#@ end
#@ if values.akoOperator.config.avi_ingress_node_network_list != '""':
#@overlay/match missing_ok=True
nodeNetworkList: #@ json.decode(values.akoOperator.config.avi_ingress_node_network_list)
#@ end
#@ if values.akoOperator.config.avi_nsxt_t1_lr:
#@overlay/match missing_ok=True
networksConfig:
nsxtT1LR: #@ values.akoOperator.config.avi_nsxt_t1_lr
#@ end
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,31 @@ spec:
ingress:
disableIngressClass: true
defaultIngressController: false

---
apiVersion: networking.tkg.tanzu.vmware.com/v1alpha1
kind: AKODeploymentConfig
metadata:
name: install-ako-for-all-npl
spec:
cloudName: ""
serviceEngineGroup: ""
controller: ""
adminCredentialRef:
name: controller-credentials
namespace: default
certificateAuthorityRef:
name: controller-ca
namespace: default
dataNetwork:
name: ""
cidr: ""
controlPlaneNetwork:
name: ""
cidr: ""
extraConfigs:
disableStaticRouteSync: false
ingress:
disableIngressClass: true
serviceType: NodePortLocal
defaultIngressController: false