123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- apiVersion: v1
- items:
- - apiVersion: v1
- kind: Service
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: backend
- name: backend
- spec:
- ports:
- - name: "8080"
- port: 8080
- targetPort: 8080
- selector:
- io.kompose.service: backend
- status:
- loadBalancer: {}
- - apiVersion: v1
- kind: Service
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: client
- name: client
- spec:
- ports:
- - name: "8081"
- port: 8081
- targetPort: 8081
- selector:
- io.kompose.service: client
- status:
- loadBalancer: {}
- - apiVersion: v1
- kind: Service
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: db
- name: db
- spec:
- ports:
- - name: "3306"
- port: 3306
- targetPort: 3306
- selector:
- io.kompose.service: db
- status:
- loadBalancer: {}
- - apiVersion: apps/v1
- kind: Deployment
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: backend
- name: backend
- spec:
- replicas: 1
- selector:
- matchLabels:
- io.kompose.service: backend
- strategy: {}
- template:
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.network/test-network: "true"
- io.kompose.service: backend
- spec:
- containers:
- - env:
- - name: TZ
- value: Asia/Shanghai
- image: backend
- name: backend
- ports:
- - containerPort: 8080
- resources: {}
- restartPolicy: Always
- status: {}
- - apiVersion: networking.k8s.io/v1
- kind: NetworkPolicy
- metadata:
- creationTimestamp: null
- name: test-network
- spec:
- ingress:
- - from:
- - podSelector:
- matchLabels:
- io.kompose.network/test-network: "true"
- podSelector:
- matchLabels:
- io.kompose.network/test-network: "true"
- - apiVersion: apps/v1
- kind: Deployment
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: client
- name: client
- spec:
- replicas: 1
- selector:
- matchLabels:
- io.kompose.service: client
- strategy: {}
- template:
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: client
- spec:
- containers:
- - image: client
- name: client
- ports:
- - containerPort: 8081
- resources: {}
- restartPolicy: Always
- status: {}
- - apiVersion: apps/v1
- kind: Deployment
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.service: db
- name: db
- spec:
- replicas: 1
- selector:
- matchLabels:
- io.kompose.service: db
- strategy:
- type: Recreate
- template:
- metadata:
- annotations:
- kompose.cmd: D:\program\k8s\kompose.exe convert -o deployments.yaml
- kompose.version: 1.26.0 (40646f47)
- creationTimestamp: null
- labels:
- io.kompose.network/test-network: "true"
- io.kompose.service: db
- spec:
- containers:
- - args:
- - --character-set-server=utf8mb4
- - --collation-server=utf8mb4_unicode_ci
- env:
- - name: MYSQL_ROOT_PASSWORD
- value: root
- - name: TZ
- value: Asia/Shanghai
- image: mysql:5.7
- name: db
- ports:
- - containerPort: 3306
- resources: {}
- volumeMounts:
- - mountPath: /var/lib/mysql
- name: db-claim0
- restartPolicy: Always
- volumes:
- - name: db-claim0
- persistentVolumeClaim:
- claimName: db-claim0
- status: {}
- - apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- creationTimestamp: null
- labels:
- io.kompose.service: db-claim0
- name: db-claim0
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 100Mi
- status: {}
- kind: List
- metadata: {}
|