airshipctl/manifests/function/k8scontrol-capd/cluster.yaml
Suraj Patil 4981514fa7 Fixes namespace issue in capd
With this patch kubernetes resources will get deployed in target-infra
namespace instead of default.

Closes: #618
Change-Id: I74044512e21fd4b82420c0f09b40ad6c6c853623
2021-07-28 12:44:25 +05:30

28 lines
675 B
YAML

---
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
name: "target-cluster"
namespace: default
spec:
clusterNetwork:
services:
cidrBlocks: ["10.128.0.0/12"]
pods:
cidrBlocks: ["192.168.0.0/16"]
serviceDomain: "cluster.local"
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: DockerCluster
name: "target-cluster"
controlPlaneRef:
kind: KubeadmControlPlane
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
name: "target-cluster-control-plane"
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: DockerCluster
metadata:
name: "target-cluster"
namespace: default