Sha256: 6268dbc3bb81018ad64c07daef868e6ee41eb6238233087db23f6610a6a5b465
Contents?: true
Size: 1.01 KB
Versions: 7
Compression:
Stored size: 1.01 KB
Contents
apiVersion: apps/v1 kind: Deployment metadata: name: gameserver-nginx labels: app: gameserver component: gameserver-nginx spec: replicas: 10 selector: matchLabels: app: gameserver component: gameserver-nginx template: metadata: labels: app: gameserver component: gameserver-nginx spec: containers: - name: gameserver-nginx image: nginx:1.18.0 ports: {{- $initialValue := int .Values.gameserver.port.first }} {{- $finalValue := add .Values.gameserver.port.last 1 }} {{- $finalValue = int $finalValue }} {{- range untilStep $initialValue $finalValue 1 }} {{- $port := . }} - name: port-{{ $port }} containerPort: {{ $port }} protocol: TCP {{- end }} volumeMounts: - name: nginx-config mountPath: /etc/nginx/nginx.conf subPath: nginx.conf volumes: - name: nginx-config configMap: name: nginx-config
Version data entries
7 entries across 7 versions & 1 rubygems