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: {}