mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2026-02-07 18:26:41 +08:00
k8s pod yml
This commit is contained in:
parent
416ee7b9ca
commit
93c36eabe1
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.9)
|
||||||
project(cpp-ipc)
|
project(cpp-ipc)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|||||||
37
dockerfiles/shm.yml
Normal file
37
dockerfiles/shm.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: shm-demo
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
# - args:
|
||||||
|
# - infinity
|
||||||
|
# command:
|
||||||
|
# - sleep
|
||||||
|
# image: centos:7
|
||||||
|
# name: centos
|
||||||
|
# volumeMounts:
|
||||||
|
# - mountPath: /dev/shm
|
||||||
|
# name: cache-volume
|
||||||
|
- name: function-1
|
||||||
|
image: nginx
|
||||||
|
env:
|
||||||
|
- name: ROLE
|
||||||
|
value: s
|
||||||
|
volumeMounts:
|
||||||
|
- name: cache-volume
|
||||||
|
mountPath: /dev/shm
|
||||||
|
|
||||||
|
- name: function-2
|
||||||
|
image: debian
|
||||||
|
env:
|
||||||
|
- name: ROLE
|
||||||
|
value: c
|
||||||
|
volumeMounts:
|
||||||
|
- name: cache-volume
|
||||||
|
mountPath: /dev/shm
|
||||||
|
volumes:
|
||||||
|
- emptyDir:
|
||||||
|
medium: Memory
|
||||||
|
sizeLimit: 1024Mi
|
||||||
|
name: cache-volume
|
||||||
Loading…
x
Reference in New Issue
Block a user