apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app-helloworld-two
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: app-helloworld-two
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: app-helloworld-two
|
|
spec:
|
|
containers:
|
|
- name: app-helloworld-two
|
|
image: nginx
|
|
ports:
|
|
- containerPort: 80
|
|
env:
|
|
- name: TITLE
|
|
value: "Welcome to Azure Kubernetes Service (AKS)"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: app-helloworld-two
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 80
|
|
selector:
|
|
app: app-helloworld-two
|