Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NOC
Iac
Commits
e165a4c8
Commit
e165a4c8
authored
Jan 15, 2022
by
malf
Browse files
add crossplane bootstrap
parent
07278284
Changes
2
Hide whitespace changes
Inline
Side-by-side
kind/crossplane-complete/templates/7-eks-cluster-xr.yaml
View file @
e165a4c8
...
...
@@ -32,6 +32,9 @@ spec:
workload-type
:
"
non-gpu"
workers-size
:
2
cluster-role
:
"
arn:aws:iam::597766473323:role/EKS-Cluster-Role"
workernode-role
:
"
arn:aws:iam::597766473323:role/EKS-Cluster-Role"
compositionRef
:
name
:
amazon-eks-cluster
...
...
kind/crossplane.sh
0 → 100644
View file @
e165a4c8
##!/bin/bash
#
# The Crossplane CLI extends kubectl with functionality to build, push, and install Crossplane packages
#
curl
-sL
https://raw.githubusercontent.com/crossplane/crossplane/release-1.0/install.sh | sh
sudo mv
kubectl-crossplane /usr/local/bin
# In order to authenticate with the external provider API such as AWS, the provider controllers need to have access to credentials.
# It could be an IAM User for AWS
# An AWS user with Administrative privileges is needed to enable Crossplane to create the required resources
# We wil have to first create a configuration file, secrets.conf, with credeantials of an AWS account in the following format.
#
# [default]
# aws_access_key_id =ABCDEFGHIJ0123456789
# aws_secret_access_key = Ow3HUaP8BbqkV4dUrZr0H7yT5nGP5OPFcZJ+
#
# Then using that file, a Kubernetes Secret is created as follows
#
kubectl
-n
crossplane-system create secret generic aws-credentials
--from-file
=
credentials
=
./secrets.conf
# Push this package to a repository in an image registry
#
cd
eks-ressource/eks-configuration
kubectl crossplane build configuration
kubectl crossplane push configuration IMAGE_REPO:IMAGE_TAG
# Here are a set of CLI commands to look at various resources
#
kubectl get crossplane
# get all resources related to Crossplane.
kubectl get managed
# get all resources that represent a unit of external infrastructure such as RDSInstance.
kubectl get composite
# get all resources that represent an XR
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment