This file contains 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: Service | |
metadata: | |
name: nfs-server | |
spec: | |
ports: | |
- name: nfs | |
port: 2049 | |
selector: | |
role: nfs-server |
This file contains 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
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: nginx-deployment | |
spec: | |
selector: | |
matchLabels: | |
app: nginx | |
replicas: 3 | |
template: |
This file contains 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
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: "nginx" | |
spec: | |
selector: | |
app: "nginx" | |
ports: | |
- protocol: "TCP" | |
port: 80 |
This file contains 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
resource "google_container_cluster" "nfs-test" { | |
provider = "google-beta" | |
name = "nfs-test" | |
region = "us-east1" | |
initial_node_count = 1 | |
network = "default" | |
node_config { | |
machine_type = "n1-standard-2" |
This file contains 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: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: tiller |
This file contains 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
type ItemData struct { | |
Center string `json:"center"` | |
DateCreated time.Time `json:"date_created"` | |
Description string `json:"description"` | |
Keywords []string `json:"keywords"` | |
MediaType string `json:"media_type"` | |
NasaID string `json:"nasa_id"` | |
Title string `json:"title"` | |
} |
This file contains 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
provider "google" { | |
credentials = file("./creds/serviceaccount.json") | |
project = "gke-tf-demo" | |
region = "europe-west1" | |
} |
This file contains 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
resource "google_container_cluster" "gke-cluster" { | |
name = "my-first-gke-cluster" | |
network = "default" | |
location = "europe-west1-b" | |
initial_node_count = 3 | |
} |
This file contains 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
resource "google_container_node_pool" "extra-pool" { | |
name = "extra-node-pool" | |
location = "europe-west1-b" | |
cluster = google_container_cluster.gke-cluster.name | |
initial_node_count = 3 | |
} |
This file contains 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
master: | |
serviceType: LoadBalancer | |
installPlugins: | |
- kubernetes:1.21.2 | |
- workflow-job:2.36 | |
- workflow-aggregator:2.6 | |
- credentials-binding:1.20 | |
- git:4.0.0 | |
- blueocean:1.21.0 |