mirror of
				https://github.com/TeamPiped/Piped-Kubernetes.git
				synced 2024-08-14 23:57:15 +00:00 
			
		
		
		
	Commands do work for the most part
The frontend needs better way than sed to change the api endpoint.
This commit is contained in:
		
							parent
							
								
									52ed0d9374
								
							
						
					
					
						commit
						6c8ac774e8
					
				
					 4 changed files with 28 additions and 8 deletions
				
			
		|  | @ -24,7 +24,7 @@ If release name contains chart name it will be used as a full name. | ||||||
|     {{- if contains $name .Release.Name -}} |     {{- if contains $name .Release.Name -}} | ||||||
|       {{- $name = .Release.Name -}} |       {{- $name = .Release.Name -}} | ||||||
|     {{- else -}} |     {{- else -}} | ||||||
|       {{- $name = printf "%s-%s" .Release.Name $name -}} |       {{- $name = printf "%s" $name -}} | ||||||
|     {{- end -}} |     {{- end -}} | ||||||
|   {{- end -}} |   {{- end -}} | ||||||
|   {{- trunc 50 $name | trimSuffix "-" -}} |   {{- trunc 50 $name | trimSuffix "-" -}} | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ If release name contains chart name it will be used as a full name. | ||||||
|     {{- if contains $name .Release.Name -}} |     {{- if contains $name .Release.Name -}} | ||||||
|       {{- $name = .Release.Name -}} |       {{- $name = .Release.Name -}} | ||||||
|     {{- else -}} |     {{- else -}} | ||||||
|       {{- $name = printf "%s-%s" .Release.Name $name -}} |       {{- $name = printf "%s" $name -}} | ||||||
|     {{- end -}} |     {{- end -}} | ||||||
|   {{- end -}} |   {{- end -}} | ||||||
|   {{- trunc 50 $name | trimSuffix "-" -}} |   {{- trunc 50 $name | trimSuffix "-" -}} | ||||||
|  |  | ||||||
|  | @ -24,7 +24,7 @@ If release name contains chart name it will be used as a full name. | ||||||
|     {{- if contains $name .Release.Name -}} |     {{- if contains $name .Release.Name -}} | ||||||
|       {{- $name = .Release.Name -}} |       {{- $name = .Release.Name -}} | ||||||
|     {{- else -}} |     {{- else -}} | ||||||
|       {{- $name = printf "%s-%s" .Release.Name $name -}} |       {{- $name = printf "%s" $name -}} | ||||||
|     {{- end -}} |     {{- end -}} | ||||||
|   {{- end -}} |   {{- end -}} | ||||||
|   {{- trunc 50 $name | trimSuffix "-" -}} |   {{- trunc 50 $name | trimSuffix "-" -}} | ||||||
|  |  | ||||||
|  | @ -11,7 +11,7 @@ global: | ||||||
| 
 | 
 | ||||||
| controller: | controller: | ||||||
|   # -- enable the controller. |   # -- enable the controller. | ||||||
|   enabled: true |   enabled: false | ||||||
| 
 | 
 | ||||||
| serviceAccount: | serviceAccount: | ||||||
|   create: false |   create: false | ||||||
|  | @ -33,16 +33,18 @@ frontend: | ||||||
| 
 | 
 | ||||||
|   image: |   image: | ||||||
|     # -- image repository |     # -- image repository | ||||||
|     repository: 1337kavin/piped |     repository: 1337kavin/piped-frontend | ||||||
|     # -- image tag |     # -- image tag | ||||||
|     # @chart.appVersion |     # @chart.appVersion | ||||||
|     tag: |     tag: | ||||||
|     # -- image pull policy |     # -- image pull policy | ||||||
|     pullPolicy: IfNotPresent |     pullPolicy: IfNotPresent | ||||||
| 
 | 
 | ||||||
|   command: "/bin/ash -c" |   # Using currently container default | ||||||
|   args: |   #command: "/bin/tail" | ||||||
|     - sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/* && /docker-entrypoint.sh && nginx -g "daemon off;" |   #args: | ||||||
|  |   #  - -c | ||||||
|  | #    - "sed -i s/pipedapi.kavin.rocks/BACKEND_HOSTNAME/g /usr/share/nginx/html/assets/*" | ||||||
| 
 | 
 | ||||||
| backend: | backend: | ||||||
|   enabled: true |   enabled: true | ||||||
|  | @ -58,6 +60,22 @@ backend: | ||||||
|           port: 8080 |           port: 8080 | ||||||
|           protocol: HTTP |           protocol: HTTP | ||||||
| 
 | 
 | ||||||
|  |   command: "/opt/java/openjdk/bin/java" | ||||||
|  |   args: | ||||||
|  |     - -server | ||||||
|  |     - -Xmx1G | ||||||
|  |     - -Xaggressive | ||||||
|  |     - -XX:+UnlockExperimentalVMOptions | ||||||
|  |     - -XX:+OptimizeStringConcat | ||||||
|  |     - -XX:+UseStringDeduplication | ||||||
|  |     - -XX:+UseCompressedOops | ||||||
|  |     - -XX:+UseNUMA | ||||||
|  |     - -Xgcpolicy:gencon | ||||||
|  |     - -Xshareclasses:allowClasspaths | ||||||
|  |     - -Xtune:virtualized | ||||||
|  |     - -jar | ||||||
|  |     - /app/piped.jar | ||||||
|  | 
 | ||||||
|   image: |   image: | ||||||
|     # -- image repository |     # -- image repository | ||||||
|     repository: 1337kavin/piped |     repository: 1337kavin/piped | ||||||
|  | @ -83,6 +101,8 @@ ytproxy: | ||||||
|           port: 8080 |           port: 8080 | ||||||
|           protocol: HTTP |           protocol: HTTP | ||||||
| 
 | 
 | ||||||
|  |   command: "/app/piped-proxy" | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
|   image: |   image: | ||||||
|     # -- image repository |     # -- image repository | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue