Skip to content

Commit 9aa7e89

Browse files
committed
Added fix for missing secret
1 parent da3bcad commit 9aa7e89

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: kube-cicd
5+
namespace: kube-system
6+
annotations:
7+
kubernetes.io/service-account.name: kube-cicd
8+
type: kubernetes.io/service-account-token

cloudbank/scripts/init-cluster.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ kubectl apply -f $CB_KUBERNETES_TEMPLATES_DIR/namespace.yaml
1111
kubectl config set-context --current --namespace=$NS
1212
kubectl config view --minify | grep namespace:
1313

14-
# Apply service account
14+
# Apply service account and secret
1515
kubectl apply -f $CB_KUBERNETES_TEMPLATES_DIR/service-account.yaml
16+
kubectl apply -f $CB_KUBERNETES_TEMPLATES_DIR/service-account-secret.yaml
17+
18+
# Create secret
19+
1620

1721
# Create Load Balancer Certification
1822
$CB_STATE_DIR/gen-lb-cert.sh

cloudbank/terraform/containerengine.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@ data "oci_containerengine_cluster_option" options {
6969
locals {
7070
versions = reverse(sort(data.oci_containerengine_cluster_option.options.kubernetes_versions))
7171
latest = local.versions[0]
72-
}
72+
}
73+

0 commit comments

Comments
 (0)