- Create a GKE cluster with a GPU node pool:
gcloud container clusters create gpu-sharing-demo --zone us-central1-c| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: nvidia-driver-installer | |
| namespace: kube-system | |
| labels: | |
| k8s-app: nvidia-driver-installer | |
| spec: | |
| selector: | |
| matchLabels: |
| persistence: | |
| enabled: true | |
| accessModes: | |
| - ReadWriteOnce | |
| size: 5Gi | |
| datasources: | |
| datasources.yaml: | |
| apiVersion: 1 | |
| datasources: |
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: cheese | |
| annotations: | |
| kubernetes.io/ingress.class: traefik | |
| spec: | |
| rules: | |
| - host: stilton.example.com | |
| http: |
| #!/usr/bin/env bash | |
| if [ "$#" -ne 1 ] | |
| then | |
| echo "Usage: $0 <db_name>" | |
| exit 1 | |
| fi | |
| db_name=$1 |
| #!/bin/bash | |
| echo "Getting list of Availability Zones" | |
| all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) | |
| all_az=() | |
| while read -r region; do | |
| az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) | |
| while read -r az; do |
| This playbook has been removed as it is now very outdated. |
| # Knife Configuration File. | |
| # | |
| # This is a Ruby DSL to set configuration parameters for Knife's | |
| # general options. The default location for this file is | |
| # ~/.chef/knife.rb. If multiple Chef repositories are used, | |
| # per-repository configuration files can be created. A per repository | |
| # configuration file must be .chef/knife.rb in the base directory of | |
| # the Chef repository. For example, | |
| # | |
| # ~/Development/chef-repo/.chef/knife.rb |
| <?php | |
| namespace My\Bundle\EventListener; | |
| use My\Bundle\User\User; | |
| use Symfony\Component\Routing\Router; | |
| use Symfony\Component\Security\Http\Event\InteractiveLoginEvent; | |
| class InteractiveLoginListener | |
| { |