Copy/paste.

This commit is contained in:
29 changed files with 2473 additions and 2 deletions

View File

@@ -0,0 +1 @@
# lesson-158-private

View File

@@ -0,0 +1,7 @@
---
namespace: staging
images:
- name: aputra/nginx
newTag: v0.1.0
resources:
- ../../../my-app-base

View File

@@ -0,0 +1,21 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
imagePullPolicy: Always
image: aputra/nginx
ports:
- containerPort: 80

View File

@@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: arbitrary
resources:
- deployment.yaml
- namespace.yaml

View File

@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: default

View File

@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: foo

View File

@@ -0,0 +1,26 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: foo
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
imagePullPolicy: Always
image: aputra/nginx-private:v0.1.0
ports:
- containerPort: 80
imagePullSecrets:
- name: dockerconfigjson