新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: petshop-webservice
|
||||
labels:
|
||||
kiamol: ch18
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: http
|
||||
nodePort: 30003
|
||||
selector:
|
||||
app: petshop
|
||||
component: webservice
|
||||
type: NodePort
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: petshop-webservice
|
||||
labels:
|
||||
kiamol: ch18
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: petshop
|
||||
component: webservice
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: petshop
|
||||
component: webservice
|
||||
spec:
|
||||
containers:
|
||||
- image: sixeyed/petshop-webservice:1809
|
||||
name: petshop-webservice
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: connection-string
|
||||
mountPath: "/petshop-webservice/config"
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: connection-string
|
||||
secret:
|
||||
secretName: petshop-connection-string-secret
|
||||
nodeSelector:
|
||||
kubernetes.io/os: windows
|
||||
Reference in New Issue
Block a user