Copy/paste.
This commit is contained in:
26
lesson-158-private/my-app/1-deployment.yaml
Normal file
26
lesson-158-private/my-app/1-deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user