This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: cuda-vector-add | |
spec: | |
restartPolicy: OnFailure | |
containers: | |
- name: cuda-vector-add | |
image: "gcr.io/spectro-images-public/gpu/nvidia/ubuntu-nvidia-add:ubuntu | |
# specify gpu request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download the git repository | |
# This repository contains the code and manifest file | |
# for device driver installer and | |
# device plugin | |
git clone -b spectro-gpu https://github.com/spectrocloud/container-engine-accelerators/ | |
cd nvidia-driver-installer/ubuntu/1804 | |
# First we label the nodes with GPU, | |
# so that we can schedule device driver installer and device plugin on nodes. | |
kubectl label nodes <gpu enabled node name> spectrocloud.com/gpu-accelerator="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: operator.cluster.x-k8s.io/v1alpha2 | |
kind: CoreProvider | |
metadata: | |
name: cluster-api | |
namespace: capi-system | |
spec: | |
version: v1.8.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: operator.cluster.x-k8s.io/v1alpha2 | |
kind: CoreProvider | |
metadata: | |
name: cluster-api | |
namespace: capi-system | |
spec: | |
manifestPatches: | |
- | | |
apiVersion: v1 | |
kind: Service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/apps/base/capi-operator/kustomization.yaml b/apps/base/capi-operator/kustomization.yaml | |
index bb5688c..15049ae 100644 | |
--- a/apps/base/capi-operator/kustomization.yaml | |
+++ b/apps/base/capi-operator/kustomization.yaml | |
@@ -1,4 +1,5 @@ | |
apiVersion: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | |
resources: | |
- - capi-operator.yaml | |
\ No newline at end of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.14.2 | |
ports: | |
- containerPort: 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: sample-cluster | |
spec: | |
clusterNetwork: | |
pods: | |
cidrBlocks: ["192.168.0.0/16"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ClusterClassSpec describes the desired state of the ClusterClass. | |
type ClusterClassSpec struct { | |
// infrastructure is a reference to a provider-specific template that holds | |
// the details for provisioning infrastructure specific cluster | |
// for the underlying provider. | |
// The underlying provider is responsible for the implementation | |
// of the template to an infrastructure cluster. | |
// +optional | |
Infrastructure LocalObjectTemplate `json:"infrastructure,omitempty"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: ClusterClass | |
metadata: | |
name: docker-clusterclass-v0.1.0 | |
spec: | |
... | |
patches: | |
- name: dnsImageRespository | |
definitions: | |
- selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: my-docker-cluster | |
spec: | |
topology: | |
... | |
variables: | |
- name: dnsImageRespository | |
value: my.custom.dns.registry |